IEnumerator LoadSceneAfterDelay() { yield return(new WaitForSecondsRealtime(delayBeforeLoading)); if (sceneName != "") { //SceneManager.LoadScene(sceneName); fader.LoadScene(sceneName); } else { Debug.LogError("AutoLoadNextScene: scene name not provided"); //Debug.LogWarning("AutoLoadNextScene: scene name not provided, attampting to load next scene"); //SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1); } }
public void RetryPressed() { fader.LoadScene(SceneManager.GetActiveScene().name); }
// Update is called once per frame void SelectLevel(string _level_name) { fader.LoadScene(_level_name); }
void LoadScene() => _fader.LoadScene(_scene);