public void OnPressEqual() { if (inputAnswer.Length <= 0) { return; } examine.SetAnswer(int.Parse(inputAnswer)); if (examine.NextQuestion()) { UpdateQuestion(); } else { if (examine.isErrorQuestionMode) { ShowReReport(); } else { ShowReport(); } if (!examine.isErrorQuestionMode) { // save score } return; } }
public void StartWrongQuestion() { examine = new Examine(); #if UNITY_EDITOR examine.InitExamineWithWrongQuestion(5); #else examine.InitExamineWithWrongQuestion(20); #endif examine.NextQuestion(); UpdateQuestion(); }
public void OnPressRetry() { Report.gameObject.SetActive(false); Examine e = new Examine(); e.InitExamine(examine, true); examine = e; examine.StartExamine(); examine.NextQuestion(); UpdateQuestion(); }
public void StartNewQuestion() { examine = new Examine(); #if UNITY_EDITOR examine.InitExamine(5); #else examine.InitExamine(20); #endif examine.StartExamine(); examine.NextQuestion(); UpdateQuestion(); }