void SetUpGameBank() { bankUi.thisTurnBank = CurrentBank; bankUi.coinBank = CurrentBank; bankUi.nextTurnBank = NextBank; if (turn == 1) { CurrentBank.ClearBank(); NextBank.ClearBank(); CurrentBank.TranferValues(StartingBank); } bankUi.UpdateUI(); Debug.Log("bank" + CurrentBank.Blue); }
public bool PlayCard(Card card) { bool CardPlayed = false; if (ActiveBank.CheckTransaction(Currency.red, card.CardCost.Red * -1) && ActiveBank.CheckTransaction(Currency.blue, card.CardCost.Blue * -1) && ActiveBank.CheckTransaction(Currency.yellow, card.CardCost.Yellow * -1) && ActiveBank.CheckTransaction(Currency.coin, card.CardCost.Coin * -1)) { CardPlayed = true; PayCost(card); Payment(card); } if (CardPlayed) { card.PlayEffect(); ui.UpdateUI(); } return(CardPlayed); }