void Update() { if (!RemoteTech.NetworkInitialized) { RemoteTech.NetworkInitialized = true; if (RemoteTech.Enabled) { StartCoroutine(callbacks.NetworkInitialized()); } } // attach map renderer to planetarium camera once if (MapView.MapIsEnabled && map_camera_script == null) { map_camera_script = PlanetariumCamera.Camera.gameObject.AddComponent <MapCameraScript>(); } // process keyboard input Misc.KeyboardInput(); // add description to techs Misc.TechDescriptions(); // set part highlight colors Highlighter.Update(); // prepare gui content UI.Update(callbacks.visible); }
void Update() { if (!didSanityCheck) { SanityCheck(); didSanityCheck = true; } if (!Communications.NetworkInitializing) { Communications.NetworkInitializing = true; StartCoroutine(Callbacks.NetworkInitialized()); } // attach map renderer to planetarium camera once if (MapView.MapIsEnabled && map_camera_script == null) { map_camera_script = PlanetariumCamera.Camera.gameObject.AddComponent <MapCameraScript>(); } // process keyboard input Misc.KeyboardInput(); // add description to techs Misc.TechDescriptions(); // set part highlight colors Highlighter.Update(); // prepare gui content UnityEngine.Profiling.Profiler.BeginSample("Kerbalism.UI.Update"); UI.Update(Callbacks.visible); UnityEngine.Profiling.Profiler.EndSample(); }
void Update() { // attach map renderer to planetarium camera once if (MapView.MapIsEnabled && map_camera_script == null) { map_camera_script = PlanetariumCamera.Camera.gameObject.AddComponent <MapCameraScript>(); } // process keyboard input Misc.KeyboardInput(); // add description to techs Misc.techDescriptions(); // set part highlight colors Highlighter.update(); // prepare gui content UI.update(callbacks.visible); }