Example #1
0
        public override void PostDeSpawn(Map map)
        {
            Beehouses_MapComponent mapComp = map.GetComponent <Beehouses_MapComponent>();

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

            if (mapComp != null)
            {
                mapComp.RemoveBeehouseFromMap(this.parent);
            }
        }
Example #3
0
        public override void PostSpawnSetup(bool respawningAfterLoad)
        {
            Beehouses_MapComponent mapComp = this.parent.Map.GetComponent <Beehouses_MapComponent>();

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