Пример #1
0
    public void DiscardSpecificCard(Card card)
    {
        int  cardIndex     = cards.IndexOf(card);
        Card cardToDiscard = cards[cardIndex];

        cards.RemoveAt(cardIndex);

        Discard discard = FindObjectOfType <Discard>();

        discard.AddCardToDiscard(card);
        SetCardsInDeckTextField();
    }