public void AddCards(List <Card> cards) { _Hand.AddRange(cards); foreach (var card in cards) { card.Interactable = true; card.OnInteraction += OnInteraction; } OnCardsAdded?.Invoke(this, new OnCardsAddedArgs(cards)); OnHandChanged?.Invoke(this, new OnHandChangedArgs(_Hand)); }
public void AddCards(List <Card> cards) { if (_Stack.Count > 0) { TopCard.Interactable = false; } foreach (var card in cards) { _Stack.Push(card); card.OnInteraction += OnInteraction; } TopCard.Interactable = true; OnCardsAdded?.Invoke(this, new OnCardsAddedArgs(cards)); }