void LoadSettings() { if (GUILayout.Button("Load Settings")) { TINUFlightCamera.LoadSettings(); } }
void OnDestroy() { TINU_AppButton.Toggle -= ToggleGUI; GameEvents.onHideUI.Remove(onHideUI); GameEvents.onShowUI.Remove(onShowUI); TINUFlightCamera.SaveSettings(); }
void UpdateGUIState() { enabled = (FlightDriver.Pause || !hide_ui) && gui_enabled; if (!enabled) { TINUFlightCamera.SaveSettings(); } }