Пример #1
0
    public void Grading()
    {
        int grade = CheckResult();

        Debug.Log("Your grade is: " + grade);
        UserCanvas.SetActive(false);

        logtool.Submit(grade);
        logtool.SaveLog();

        if (grade == 100)
        {
            WinCanvas.SetActive(true);
            WinScoreManager.SetScore(grade);
            // Unlock the next room.
            DataUtil.UnlockCurrentRoom();
        }
        else
        {
            LoseCanvas.SetActive(true);
            LoseScoreManager.SetScore(grade);
        }
    }