Esempio n. 1
0
    IEnumerator ResultCo()
    {
        ResultTL.Play();

        yield return(0);

        //イントロ再生
        while (ResultTL.state == PlayState.Playing)
        {
            yield return(0);
        }
        if (round >= 3)
        {
            gameManager.AnswerReset();
            yield return(new WaitForSeconds(0.1f));

            gameManager.AnswerAnActive();
            RoundObj.SetActive(false);
            finalResult.DataSet(correct);
            sceneManager.ToFinalResult();
        }
        else
        {
            gameManager.AnswerReset();
            yield return(new WaitForSeconds(0.1f));

            gameManager.AnswerAnActive();
            round++;
            RoundText.text = (round).ToString();
            NextTL.Play();
            yield return(0);

            while (NextTL.state == PlayState.Playing)
            {
                yield return(0);
            }

            gameManager.GameStart(round);
        }
    }