Exemplo n.º 1
0
    private IEnumerator EndScene(int nextSceneIndex)
    {
        SoundManager.Instance.NextAudio(clip: null);
        yield return(UI.FadeOutAll());

        yield return(new WaitForSeconds(0.5f));

        SceneLoader.NextScene(nextSceneIndex);
    }