Exemplo n.º 1
0
        public void PullResultCard(ResultCard card)
        {
            pendingResultCard = resultDeck[RandomController.GetRandom(0, resultDeck.Count)];

            if (resultCardPulledEvent != null)
            {
                resultCardPulledEvent(this, pendingResultCard);
            }
        }
Exemplo n.º 2
0
        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();
        }