private void UseCardsOnTable() { foreach (CardInstance card in aiPlayerData.table) { while (card.numberOfUsesThisTurn < card.card.useLimit) { Debug.Log("Using card " + card.card.name + " ..."); cardSystem.UseCard(card, determineBestTarget()); } } }
void UseCard(CardData card) { _CardSystem.UseCard(card, _GameStateHolder._ActivePlayer, _GameStateHolder._InactivePlayer, _GameStateHolder._gameState); }