void Awake() { if (Instance != null) { QDebug.Log("Destroy, already exists!"); Destroy(this); return; } Instance = this; GameEvents.onVesselGoOffRails.Add(OnVesselGoOffRails); if (System.Math.Abs(GameSettings.MASTER_VOLUME) < float.Epsilon) { GameSettings.MASTER_VOLUME = QSettings.Instance.Master; GameSettings.SaveSettings(); } volume = new QVolume(GameSettings.MASTER_VOLUME, QSettings.Instance.Muted); level = new QLevel(volume); qKey = new QKey(); gui = new QGui(qKey, level); DontDestroyOnLoad(this); QDebug.Log("Awake"); FileConfig = RegisterToolbar.PATH + "/Config.txt"; Debug.Log("QM.Awake, PATH: " + RegisterToolbar.PATH); }
private void LoadInfo(string sName) { QLevel curItem = mainDataSet.GetQlevelItem(sName); if (curItem == null) { return; } PriorityTextBox.Text = curItem.Priority.ToString(); DescriptionBox.Text = curItem.Description; }