Example #1
0
 public override void SetTarget(GameObject target)
 {
     if (target == null)
     {
         PUtil.LogError("Invalid target specified");
     }
     else
     {
         sensor = target.GetComponent <LogicScheduleSensor>();
         RebuildPanel();
     }
 }
        public override void DoPostConfigureComplete(GameObject go)
        {
            GeneratedBuildings.MakeBuildingAlwaysOperational(go);
            LogicPorts logicPorts = go.AddOrGet <LogicPorts>();

            logicPorts.inputPortInfo  = null;
            logicPorts.outputPortInfo = new LogicPorts.Port[1]
            {
                OUTPUT_PORT
            };
            LogicScheduleSensor logicScheduleSensor = go.AddOrGet <LogicScheduleSensor>();

            logicScheduleSensor.manuallyControlled = false;
        }
Example #3
0
 public override void ClearTarget()
 {
     sensor = null;
 }