Esempio n. 1
0
        /// <summary>
        /// Animates removing cards from table also destroys game objects of cards
        /// </summary>
        public void AnimateRemoveCardsFromTableToDiscardPile(float delay = 0f)
        {
            var cards = GetComponentsInChildren <CardRoot>();

            foreach (var cardOnTable in cards)
            {
                Discard.AnimateRemoveCardToDiscardPile(cardOnTable, delay);
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Moves all cards to discard at game end
        /// </summary>
        public virtual void AnimateRemoveCardsToDiscardPile(DiscardPile discard, float delay)
        {
            foreach (var cardInHand in CardsInHand)
            {
                discard.AnimateRemoveCardToDiscardPile(cardInHand, delay);
            }

            CardsInHand.Clear();
        }