Ejemplo n.º 1
0
 private void Killed()
 {
     building.OpenPoints(grid, gridI, loc);
     Destroy(gameObject);
     gui.Killed(gameObject);
     PlayerOwner.Buildings.Remove(
         GameManager.Instance.ActorLookup[gameObject] as Game.Actors.Buildings.Building);
     if (PlayerOwner.Buildings.Count == 0)
     {
         PlayerOwner.Lost(Player.LoseReason.AllBuildingsDestroyed);
     }
 }
Ejemplo n.º 2
0
 private void Killed()
 {
     anim.Die(gameObject);
     gui.Killed(gameObject);
     PlayerOwner.Units.Remove(GameManager.Instance.ActorLookup[gameObject] as Unit);
 }