public void PullResultCard(ResultCard card) { pendingResultCard = resultDeck[RandomController.GetRandom(0, resultDeck.Count)]; if (resultCardPulledEvent != null) { resultCardPulledEvent(this, pendingResultCard); } }
public void SetupNewBattle(BattleSide side, Position position) { this.side = side; this.position = position; actionDeck.Clear(); foreach (ActionCardData cardData in staticData.possibleActionCards) { ActionCard card = new ActionCard(); card.Init(cardData, this); actionDeck.Add(card); } foreach (ResultCardData cardData in staticData.possibleResultCards) { ResultCard card = new ResultCard(); card.Init(cardData, this); resultDeck.Add(card); } atbGauge.Clear(); }