Beispiel #1
0
        public override void DoPostConfigureComplete(GameObject go)
        {
            GeneratedBuildings.RegisterLogicPorts(go, OUTPUT_PORT);
            BatterySensor sensor = go.AddComponent <BatterySensor>();

            sensor.manuallyControlled = false;
        }
Beispiel #2
0
        private void OnCopySettings(object data)
        {
            GameObject    gameObject = (GameObject)data;
            BatterySensor component  = gameObject.GetComponent <BatterySensor>();

            if (component != null)
            {
                this.activateValue   = component.activateValue;
                this.deactivateValue = component.deactivateValue;
            }
        }