//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(); } }
// 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(); } }