Beispiel #1
0
 public override void Destroy()
 {
     GamePullController.DestroyButton(gameObject);
     animation.Destroy();
     isStatic = false;
     GUIController.Remove(gameObject, this);
 }
Beispiel #2
0
    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;
    }
Beispiel #3
0
 public void Destroy()
 {
     animation.Destroy();
     GamePullController.DestroyImage(gameObject);
     BombsController.bombs.Remove(this);
 }