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; }