Exemple #1
0
 public virtual void RemoveCard(CardController card)
 {
     if (Cards.Remove(card))
     {
         OnCardCountChanged?.Invoke(Cards.Count);
     }
 }
Exemple #2
0
 public virtual void AddCard(CardController card)
 {
     if (!Cards.Contains(card))
     {
         Cards.Add(card);
         OnCardCountChanged?.Invoke(Cards.Count);
     }
 }