IEnumerator waitforSec()
    {
        animator.enabled = true;
        animator.Play("launchGame");

        yield return(new WaitForSeconds(0.45f));

        SceneManagerDontDestroy.LoadScene();
    }
Exemplo n.º 2
0
    IEnumerator waitToLaunchAgain()
    {
        yield return(new WaitForSeconds(4f));

        SceneManagerDontDestroy.LoadScene();
    }