예제 #1
0
        private void SpawnGlower()
        {
            Thing   thing    = ThingMaker.MakeThing(glowerDef, null);
            IntVec3 position = this.Position + GenAdj.CardinalDirections[0]
                               + GenAdj.CardinalDirections[0];

            GenPlace.TryPlaceThing(thing, position, this.Map, ThingPlaceMode.Near);
            glower        = thing as ThingWithComps_Glower;
            glower.master = this;
        }
        private void SpawnGlower()
        {
            var thing    = ThingMaker.MakeThing(glowerDef);
            var position = Position + GenAdj.CardinalDirections[0]
                           + GenAdj.CardinalDirections[0];

            GenPlace.TryPlaceThing(thing, position, Map, ThingPlaceMode.Near);
            glower = thing as ThingWithComps_Glower;
            if (glower != null)
            {
                glower.master = this;
            }
        }
 private void DespawnGlower()
 {
     glower.master = null;
     glower.DeSpawn();
     glower = null;
 }