Пример #1
0
 void HandleCardClick(Card card)
 {
     if (FormsValidRun(card))
     {
         gameActions.ExecuteRun(card);
     }
     else if (DrawPileClicked(card))
     {
         gameActions.DrawCard();
     }
     else
     {
         // No behaviour associated with this card.
     }
 }
Пример #2
0
 public void ExecuteRun(Card card)
 {
     IncreaseRun();
     boardActions.ExecuteRun(card);
 }