예제 #1
0
 /// <summary>
 /// Callback for when the ApplicationLauncher button is clicked.
 /// </summary>
 private void configGuiEnable()
 {
     if (configGUI == null)
     {
         configGUI = this.gameObject.AddOrGetComponent <ConfigurationGUI>();
     }
 }
예제 #2
0
 /// <summary>
 /// Callback for when the ApplicationLauncher button is clicked.  Can also be called from within the GUI itself from a 'Close' button.
 /// </summary>
 internal void configGuiDisable()
 {
     if (configGUI != null)
     {
         GameObject.Destroy(configGUI);
         configGUI = null;
     }
     if (configAppButton != null && configAppButton.toggleButton != null)
     {
         configAppButton.toggleButton.Value = false;
     }
 }