예제 #1
0
 public void AddCard(S_CardBase card)
 {
     cards.Add(card);
     moveToDiscard(card);
     card.onDiscard = true;
     card.OnCardPlayed();
 }
예제 #2
0
 public void Build()
 {
     if (!selectedCard)
     {
         return;
     }
     if (currentPlayer.BuildCard(selectedCard))
     {
         selectedCard.Deselect();
         selectedCard.OnCardPlayed();
         NextTurn();
         selectedCard = null;
     }
 }