コード例 #1
0
        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);
        }
コード例 #2
0
        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();
        }