private void OnAttack(int selectedSlot) { if (m_CurrentTurnCard.IsPlayerTeam) { if (selectedSlot >= 0) { AttackCardOnSlot(m_EnemyCardList, selectedSlot); } else { if (m_IsBattleAutomatic) { m_CurrentTurnCard.OnCardDoNothing(); } } } else { if (selectedSlot >= 0) { AttackCardOnSlot(m_PlayerCardList, selectedSlot); } else { m_CurrentTurnCard.OnCardDoNothing(); } } }