Exemplo n.º 1
0
 //Resets the players active cards in field
 public void resetCards()
 {
     for (int i = 0; i < cardsInPlay.Count; i++)
     {
         //Gets the AbstractCard component
         AbstractCard cardInPlay = ((GameObject)cardsInPlay [i]).GetComponent <AbstractCard> ();
         cardInPlay.endTurn();
     }
 }
Exemplo n.º 2
0
 // resets Cards
 public void endTurn()
 {
     showTurn = 120;
     Debug.Log("endTurn called");
     for (int i = 0; i < cardsInPlay.Count; i++)
     {
         //Gets the AbstractCard component
         AbstractCard cardInPlay = ((GameObject)cardsInPlay [i]).GetComponent <AbstractCard> ();
         cardInPlay.endTurn();
     }
 }