Exemple #1
0
 protected override void Awake()
 {
     if (HighLogic.LoadedScene != GameScenes.SPACECENTER)
     {
         Warning("QGUI needs to be load only in the SpaceCenter.", "QGUI");
         Destroy(this);
         return;
     }
     if (Instance != null)
     {
         Warning("There's already an Instance of QGUI", "QGUI");
         Destroy(this);
         return;
     }
     Instance = this;
     //if (BlizzyToolbar == null) BlizzyToolbar = new QBlizzyToolbar ();
     Log("Awake", "QGUI");
 }
Exemple #2
0
 protected override void OnDestroy()
 {
     //BlizzyToolbar.Destroy ();
     Log("OnDestroy", "QGUI");
     Instance = null;
 }
Exemple #3
0
 protected override void OnDestroy()
 {
     Log("OnDestroy", "QGUI");
     Instance = null;
 }