Пример #1
0
        public override void DoPostConfigureComplete(GameObject go)
        {
            LogicIlluminationSensor illuminationSensor = go.AddOrGet <LogicIlluminationSensor>();

            illuminationSensor.manuallyControlled = false;
            go.GetComponent <KPrefabID>().AddTag(GameTags.OverlayInFrontOfConduits);
        }
        private void OnCopySettings(object data)
        {
            LogicIlluminationSensor component = ((GameObject)data).GetComponent <LogicIlluminationSensor>();

            if (!((UnityEngine.Object)component != (UnityEngine.Object)null))
            {
                return;
            }
            this.Threshold = component.Threshold;
            this.ActivateAboveThreshold = component.ActivateAboveThreshold;
        }