コード例 #1
0
    private void Update()
    {
        PlayUI();

        // 答えの合わせ
        if (lineGenerator.state == LineGenerator.STATE.ANSWER && state == State.NONE)
        {
            Debug.Log("チェック");
            if (answer.CheckAnswer(questionNum, lineGenerator.linePointList))
            {
                //正解
                lineGenerator.LineReset();
                state       = State.CORRECT;
                ScoreCount += 1;
            }
            else
            {
                lineGenerator.LineReset();
                lineGenerator.state = LineGenerator.STATE.NONE;
            }
        }

        if (state == State.CORRECT)
        {
            // NextQestion();
            StartCoroutine(ShowCorrectAnimater());
        }
    }