示例#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;
 }