Exemple #1
0
        private void OnChangeQuestion(QuestionEditInterface questionEditInterface, string newValue)
        {
            if (string.IsNullOrEmpty(newValue) || questionEditInterface == null)
            {
                return;
            }

            questionEditInterface.SetValue(newValue);
        }
Exemple #2
0
        public void PromptChangeQuestion(QuestionEditInterface questionEditInterface)
        {
            if (questionEditInterface == null)
            {
                Debug.LogError(this.GetType().FullName + ": Null interface.");
                return;
            }

            string startValue = string.Equals(questionEditInterface.Question.value, QuestionManager.emptyQuestion) ? "" : questionEditInterface.Question.value;

            InputScreen.Create().Set("Change question: ", 3, 140, true, (newValue) => { OnChangeQuestion(questionEditInterface, newValue); }, startValue: startValue);
        }