Beispiel #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++;
            }
        }
Beispiel #2
0
 public void When(CardUpdated cardUpdated)
 {
 }