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