Ejemplo n.º 1
0
 public override void SetTarget(GameObject target)
 {
     if (target == null)
     {
         PUtil.LogError("Invalid target specified");
     }
     else
     {
         sensor = target.GetComponent <LogicScheduleSensor>();
         RebuildPanel();
     }
 }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
 public override void ClearTarget()
 {
     sensor = null;
 }