public override void PostDestroy(DestroyMode mode, Map previousMap) { Beehouses_MapComponent mapComp = previousMap.GetComponent <Beehouses_MapComponent>(); if (mapComp != null) { mapComp.RemoveBeehouseFromMap(this.parent); } }
public override void PostDeSpawn(Map map) { Beehouses_MapComponent mapComp = map.GetComponent <Beehouses_MapComponent>(); if (mapComp != null) { mapComp.RemoveBeehouseFromMap(this.parent); } }