private void SetCurrent(QuestionManager.QuestionSet questionSet, int dropdownIndex) { if (currSet != null) { SaveCurrent(); // Autosave. } currSet = questionSet; questionSetDropdown.SetValueWithoutNotify(dropdownIndex); setNameButton.Text = questionSet.GetDisplayName(); questionDisplay.SetCurrentSet(currSet); }
private void SaveCurrent() { if (currSet == null) { Debug.LogError(this.GetType().FullName + ": Null set."); return; } #if UNITY_EDITOR Debug.Log(this.GetType().FullName + ": Saved..." + currSet.GetDisplayName()); #endif currSet.Save(); }