Пример #1
0
        public void RandomizeNextCard()
        {
            if (_activeCardIndex >= InHandCards.Count)
            {
                _activeCardIndex = 0;
            }

            CardData updatedCard = InHandCards[_activeCardIndex];

            Randomize(updatedCard);

            if (updatedCard.Health <= 0)
            {
                InHandCards.Remove(updatedCard);
                CardDestroyed?.Invoke(updatedCard);
            }
            else
            {
                CardUpdated?.Invoke(updatedCard);
                _activeCardIndex++;
            }
        }
Пример #2
0
 void _OnCardDestroyed(CardDestroyed e)
 {
 }
Пример #3
0
 void _OnCardDestroyed(CardDestroyed e)
 {
     CardController.DestroyCard(e.player, e.card);
 }