示例#1
0
        public override void DeSpawn(DestroyMode mode = DestroyMode.Vanish)
        {
            Blight firstBlight = base.Position.GetFirstBlight(base.Map);

            base.DeSpawn(mode);
            firstBlight?.Notify_PlantDeSpawned();
        }
示例#2
0
        public override void DeSpawn()
        {
            Blight firstBlight = base.Position.GetFirstBlight(base.Map);

            base.DeSpawn();
            if (firstBlight != null)
            {
                firstBlight.Notify_PlantDeSpawned();
            }
        }