Esempio n. 1
0
        private void ExposeFacedownCardByIndex(int index, Action callback, bool isOverriden = false)
        {
            if (!isOverriden)
            {
                List <GenericDamageCard> faceDownCards = GetFacedownCards();
                GenericDamageCard        randomCard    = faceDownCards[index];

                randomCard.Expose(callback);
            }
            else
            {
                callback();
            }
        }
Esempio n. 2
0
        public void ExposeRandomFacedownCard(Action callback)
        {
            List <GenericDamageCard> faceDownCards = GetFacedownCards();

            if (faceDownCards.Count > 0)
            {
                int randomIndex = UnityEngine.Random.Range(0, faceDownCards.Count);
                GenericDamageCard randomCard = faceDownCards[randomIndex];

                randomCard.Expose(callback);
            }
            else
            {
                Messages.ShowInfo("No cards to expose");
                callback();
            }
        }
Esempio n. 3
0
 private void HandleDamageCard(GenericDamageCard card)
 {
     card.Expose(DecisionSubPhase.ConfirmDecision);
 }