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++; } }
void _OnCardDestroyed(CardDestroyed e) { }
void _OnCardDestroyed(CardDestroyed e) { CardController.DestroyCard(e.player, e.card); }