Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [SerializeField]
- private Transform _cardsPanel;
- private void LoadCards()
- {
- foreach(Transform slot in _cardsPanel)
- {
- var card = slot.transform.GetChild(0);
- if(card != null)
- {
- card.TryGetComponent<Card>(out var cardComp);
- if (_operativesToTask.Contains(cardComp.ThisOperative) == false)
- {
- Debug.Log(cardComp.ThisOperative.operativeName);
- _operativesToTask.Add(cardComp.ThisOperative);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement