Exemplo n.º 1
0
        public void LoadScene(string name, out Coroutine coroutine)
        {
            BaseSceneFader fader = Instantiate(FaderPrefab);

            fader.Init(FadeColor, TransitionBackground, ShowProgressBar);
            DontDestroyOnLoad(fader.gameObject);
            coroutine = fader.StartCoroutine(loadSceneAsync(name, fader));
        }
Exemplo n.º 2
0
        public void LoadScene(int id, out Coroutine coroutine)
        {
            BaseSceneFader fader = Instantiate(FaderPrefab);

            fader.Init(FadeColor, TransitionBackground, ShowProgressBar);
            DontDestroyOnLoad(fader.gameObject);
            coroutine = fader.StartCoroutine(loadSceneAsync(UnityEngine.SceneManagement.SceneManager.GetSceneByBuildIndex(id).name, fader));
        }