示例#1
0
        private static IEnumerator FadeOutMainMenu()
        {
            FadeMusic.FadeOutMusic();
            SceneChanger.FadeToScene();
            yield return(new WaitForSeconds(1));

            SceneManager.LoadScene("MainMenuBox");
        }
示例#2
0
        private static IEnumerator FadeOutExit()
        {
            FadeMusic.FadeOutMusic();
            SceneChanger.FadeToScene();
            yield return(new WaitForSeconds(1));

            Application.Quit();
        }
        private static IEnumerator NextScene()
        {
            FadeMusic.FadeOutMusic();
            SceneChanger.FadeToScene();
            yield return(new WaitForSeconds(1));

            SceneChanger.NextScene();
        }