public void AttackEnemy() { HidePanels(); if (!currentUnit.actionPhase) { currentUnit.FindPathThenAttack(selectedUnit.GetComponent <Unit>()); } else { currentUnit.AttackOpponent(selectedUnit.GetComponent <Unit>()); currentUnit.ResetFoundTiles(); } }