void FixedUpdate() { ticker++; if ((baseAntenna != null || RTAntennaPartModule != null) && ticker >= 5) { ticker = 0; if (!deployable || (deployable && deployModule.deployState == ModuleDeployablePart.DeployState.EXTENDED)) { if (TestLOSAll(out reflector)) { ApplyReflectorBonus(); Fields["StatusString"].guiActive = true; Fields["TargetString"].guiActive = true; Fields["StatusString"].guiActiveEditor = true; Fields["TargetString"].guiActiveEditor = true; } else { NullReflectorBonus(); Fields["StatusString"].guiActive = false; Fields["TargetString"].guiActive = false; Fields["StatusString"].guiActiveEditor = false; Fields["TargetString"].guiActiveEditor = false; } } else { if ((deployable && deployModule.deployState != ModuleDeployablePart.DeployState.EXTENDED)) { NullReflectorBonus(); Fields["StatusString"].guiActive = false; Fields["TargetString"].guiActive = false; Fields["StatusString"].guiActiveEditor = false; Fields["TargetString"].guiActiveEditor = false; } if (HighLogic.LoadedSceneIsEditor) { if (lineRenderable) { renderedLine.SetVisibility(true); } renderedLine.AdjustSize(30f); renderedLine.SetColor(badColor); } } } }