public override void Destroy() { GamePullController.DestroyButton(gameObject); animation.Destroy(); isStatic = false; GUIController.Remove(gameObject, this); }
public void Destroy() { if (rootImage != null) { rootImage.Destroy(); } GameController.unitsToDestroy.Add(this); GamePullController.DestroyImage(gameObject); objectAnimation.Destroy(); GameController.unitsDictionary.Remove(gameObject); gameObject = null; objectAnimation = null; healthBar = null; shadow = null; }
public void Destroy() { animation.Destroy(); GamePullController.DestroyImage(gameObject); BombsController.bombs.Remove(this); }