Exemplo n.º 1
0
    public void DestroyEntity()
    {
        entitiesManager.RemoveBuilding(this);

        // notify building died
        if (OnBuildingDie != null)
        {
            OnBuildingDie(this);
        }

        Destroy(gameObject, fireDelay);
    }