Beispiel #1
0
        public void ApplyPassive(CardPosition cardPosition)
        {
            int[] appliedToAllyCards =
                chosenCard.ApplyPassiveToAlly(cardTablePart, new CardPosition(cardPosition.row, cardPosition.column + 1));
            int[] appliedToOpponentCards =
                chosenCard.ApplyPassiveToOpponent(opponent.cardTablePart, new CardPosition(cardPosition.row, cardPosition.column + 1));

            //   *** Passive ability animation
            playerVisuals.StartCoroutine(playerVisuals.ApplyPassive(
                                             cardPosition,
                                             appliedToAllyCards,
                                             appliedToOpponentCards));

            OnUpdate();
        }