Exemplo n.º 1
0
        public override void PostDestroy(DestroyMode mode, Map previousMap)
        {
            Beehouses_MapComponent mapComp = previousMap.GetComponent <Beehouses_MapComponent>();

            if (mapComp != null)
            {
                mapComp.RemoveBeehouseFromMap(this.parent);
            }
        }
Exemplo n.º 2
0
        public override void PostDeSpawn(Map map)
        {
            Beehouses_MapComponent mapComp = map.GetComponent <Beehouses_MapComponent>();

            if (mapComp != null)
            {
                mapComp.RemoveBeehouseFromMap(this.parent);
            }
        }