Пример #1
0
        public IEnumerator useFadeOut(int sceneToLoad)
        {
            Time.timeScale = 1;

            if (fadeOutScript)
            {
                fadeOutScript.play();

                yield return(new WaitForSeconds(fadeOutScript.playWaitTime));
            }
            Application.LoadLevel(sceneToLoad);
        }