예제 #1
0
    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;
        }
    }
예제 #2
0
    public void StartWrongQuestion()
    {
        examine = new Examine();
                #if UNITY_EDITOR
        examine.InitExamineWithWrongQuestion(5);
                #else
        examine.InitExamineWithWrongQuestion(20);
                #endif

        examine.NextQuestion();
        UpdateQuestion();
    }
예제 #3
0
    public void OnPressRetry()
    {
        Report.gameObject.SetActive(false);
        Examine e = new Examine();

        e.InitExamine(examine, true);
        examine = e;

        examine.StartExamine();
        examine.NextQuestion();
        UpdateQuestion();
    }
예제 #4
0
    public void StartNewQuestion()
    {
        examine = new Examine();
                #if UNITY_EDITOR
        examine.InitExamine(5);
                #else
        examine.InitExamine(20);
                #endif
        examine.StartExamine();

        examine.NextQuestion();
        UpdateQuestion();
    }