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