Exemple #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);
     }
 }
Exemple #2
0
 private void Killed()
 {
     anim.Die(gameObject);
     gui.Killed(gameObject);
     PlayerOwner.Units.Remove(GameManager.Instance.ActorLookup[gameObject] as Unit);
 }