Esempio n. 1
0
    IEnumerator LoadScoreScreenAfterDelay()
    {
        yield return(new WaitForSeconds(totalOffset / 1000.0f));

        StartCoroutine(player.FadeOut(scoreDelay));
        yield return(new WaitForSeconds(scoreDelay));

        SceneManager.LoadScene(scoreScene);
    }