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