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); }
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()); }
public void NewQuestion() { activeQuestion = questionManager.RandomQuestion(); }
private void Start() { activeQuestion = questionManager.RandomQuestion(); }
public void Set(QuestionManager.Question question) { this.question = question; }