Exemple #1
0
    private IEnumerator SceneChange()
    {
        pressStartFlash.StartConstantFlash();
        startSound.Play();
        yield return(new WaitForSeconds(transitionTime));

        sceneTransition.StartTransition();
        while (sceneTransition.isPlaying)
        {
            yield return(new WaitForSeconds(0.1f));
        }
        //ChangeScene;
        Debug.Log("ChangeScnee");
        SceneManager.LoadScene(1);
        yield return(null);
    }