Exemplo n.º 1
0
 // set given GUI if not known before
 public void SetGivenGUI(BaseGUIScript newGUI)
 {
     _SetNewGUI(OptionsGUI);
 }
Exemplo n.º 2
0
 ///////////////////////////////////////////////////////////////
 // PUBLIC functions
 ///////////////////////////////////////////////////////////////
 ///////////////////////////////////////////////////////////////
 // PRIVATE functions
 ///////////////////////////////////////////////////////////////
 // set the new GUI as current GUI
 private void _SetNewGUI(BaseGUIScript NewGUI)
 {
     // if defined, set inactive
     if(CurrentGUI != null){
         CurrentGUI.SetInactive();
     }
     // save new GUI
     CurrentGUI = NewGUI;
     // set it active
     CurrentGUI.SetActive();
 }