示例#1
0
 public override void Tick()
 {
     if (harvester == null)
     {
         steamSprayer.SteamSprayerTick();
     }
 }
示例#2
0
 public override void CompTick()
 {
     base.CompTick();
     //try to set geyser
     if (geyser == null)
     {
         geyser = (Building_SteamGeyser)parent.Map.thingGrid.ThingAt(parent.Position, ThingDefOf.SteamGeyser);
     }
     //run as long as geyser is found
     if (geyser != null)
     {
         geyser.harvester = (Building)parent;
         steamSprayer.SteamSprayerTick();
     }
 }