Beispiel #1
0
 private IEnumerator WaitForSceneLoad(int sceneNumber)
 {
     yield return(SceneManager.LoadSceneAsync(sceneNumber));
 }
Beispiel #2
0
        IEnumerator EnterToContinue()
        {
            yield return(new WaitForSecondsRealtime(5));

            SceneManager.LoadSceneAsync("Intro");
        }
 private void LoadGameOverScene()
 {
     SceneManager.LoadSceneAsync("Scenes/GameOver");
 }
Beispiel #4
0
 protected virtual IEnumerator LoadSceneCoroutine(string scene, LoadSceneMode mode = LoadSceneMode.Single)
 {
     _SceneLoader = SceneManager.LoadSceneAsync(scene, mode);
     _SceneLoader.allowSceneActivation = false;
     yield return(_SceneLoader);
 }