예제 #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");
 }
예제 #2
0
 protected override void OnDestroy()
 {
     //BlizzyToolbar.Destroy ();
     Log("OnDestroy", "QGUI");
     Instance = null;
 }
예제 #3
0
 protected override void OnDestroy()
 {
     Log("OnDestroy", "QGUI");
     Instance = null;
 }