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