コード例 #1
0
        IEnumerator FadeAndLoadRoutine()
        {
            LevelLoader.LoadMainMenuLevel();

            yield return(new WaitForSeconds(waitToFade));

            screenFader.Fadeoff();

            yield return(new WaitForSeconds(screenFader.FadeDuration));

            Object.Destroy(gameObject);
        }