Esempio n. 1
0
 public void Set(QuestionManager.Question question, System.Action <QuestionEditInterface> removeCallback)
 {
     this.visibleText = QuestionDisplayerUI.ShowQuestionTexts;
     this.Set(question);
     this.editButton.onClick.AddListener(() => { PromptChangeQuestion(this); });
     this.removeButton.onClick.AddListener(() => { removeCallback.Invoke(this); });
     this.SetValue(question.value);
 }
Esempio n. 2
0
        private void DisplayNextQuestion()
        {
            if (questionList.Count == 0)
            {
                ConfirmScreen.Create().Set("Play Again?", Replay, PlayHandler.BackPhase, useCancel: true, confirmText: "Replay");
                return;
            }

            animH.SetBool(showC, true);

            int index = Random.Range(0, questionList.Count);

            QuestionManager.Question question = questionList[index];
            questionList.RemoveAt(index);

            questionDisplayer.text = UIUtil.ToColoredNamesString(question.value, PlayerSelection.GetPlayers());
        }
Esempio n. 3
0
 public void NewQuestion()
 {
     activeQuestion = questionManager.RandomQuestion();
 }
Esempio n. 4
0
 private void Start()
 {
     activeQuestion = questionManager.RandomQuestion();
 }
 public void Set(QuestionManager.Question question)
 {
     this.question = question;
 }