Exemple #1
0
 private void AttackCardOnSlot(List <CharacterCard> targetList, int attackSlot)
 {
     if (m_CurrentTurnCard.CurrentCardStatus == CharacterCard.CardStatus.Idle)
     {
         CharacterCard cardObject = targetList[attackSlot];
         if (cardObject != null)
         {
             if (cardObject.isActiveAndEnabled && m_CurrentTurnCard.isActiveAndEnabled)
             {
                 if (cardObject.CurrentHealthPoint > 0)
                 {
                     cardObject.ForceQuitVisualizeEffect();
                     m_CurrentTurnCard.AttackCard(cardObject);
                     Debug.Log("Attacked Slot = " + attackSlot);
                     m_ActionListener(OccuredActionState.Attack);
                 }
             }
         }
     }
 }