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(); } }
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(); } }
private void HandleDamageCard(GenericDamageCard card) { card.Expose(DecisionSubPhase.ConfirmDecision); }