예제 #1
0
    // scene is the scene number we are switching to
    public void masterSceneFadeOut(int scene)
    {
        // trigger fade to black animation
        blackScreeneAnimator.SetTrigger("BlackFadeOutAnimation");

        // fade the music out (time)
        audioManager.FadeOutBGM(1.2f);

        // start delayed scene switch
        this.StartCoroutine(fadeOutSwitchScene(scene));
    }