Exemplo n.º 1
0
        public void PullActionCard(ActionCard card)
        {
            if (!actionDeck.Contains(card))
            {
                UnityEngine.Debug.LogError("Hey! This is not my card!");
            }

            pendingActionCard = card;

            if (actionCardPulledEvent != null)
            {
                actionCardPulledEvent(this, pendingActionCard);
            }
        }
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();
        }