Exemplo n.º 1
0
 private void OnUnitDestroy(BaseUnit p_unit)
 {
     if (p_unit.baseStat.controllable)
     {
         Debug.Log("Game over you lose");
     }
     else
     {
         _aiDirector.RemoveAgent(p_unit.GetComponent <AIAgent>());
     }
 }