Пример #1
0
 internal void DiscardClicked(Card_Discard cardDiscard)
 {
     Debug.Log($"Discard Clicked: {cardDiscard}");
     if (CardBase.Selected_Card)
     {
         CardBase.Selected_Card.Discard(cardDiscard);
         CardBase.Selected_Card = null;
     }
     else
     {
         if (cardDiscard.CardsShown.Count == 0)
         {
             cardDiscard.ShowCards(-1);
         }
         else
         {
             cardDiscard.UnshowCards();
         }
     }
 }
Пример #2
0
 internal void Discard(Card_Discard cardDiscard)
 {
     CurrentState = CardState.Discarded;
     cardDiscard.AddCard(this);
 }