public void DestroyEntity() { entitiesManager.RemoveBuilding(this); // notify building died if (OnBuildingDie != null) { OnBuildingDie(this); } Destroy(gameObject, fireDelay); }