private IEnumerator WaitForSceneLoad(int sceneNumber) { yield return(SceneManager.LoadSceneAsync(sceneNumber)); }
IEnumerator EnterToContinue() { yield return(new WaitForSecondsRealtime(5)); SceneManager.LoadSceneAsync("Intro"); }
private void LoadGameOverScene() { SceneManager.LoadSceneAsync("Scenes/GameOver"); }
protected virtual IEnumerator LoadSceneCoroutine(string scene, LoadSceneMode mode = LoadSceneMode.Single) { _SceneLoader = SceneManager.LoadSceneAsync(scene, mode); _SceneLoader.allowSceneActivation = false; yield return(_SceneLoader); }