Example #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.
     }
 }
Example #2
0
 public void DrawCard()
 {
     ResetRun();
     boardActions.DrawCard();
 }