IEnumerator waitAndRestartScene() { Fading.BeginFade(1); yield return(new WaitForSeconds(1)); SceneManager.LoadScene(SceneManager.GetActiveScene().name); }
IEnumerator waitAndLoadScene(string sceneName) { Fading.BeginFade(1); yield return(new WaitForSeconds(1)); SceneManager.LoadScene(sceneName); SceneManager.UnloadSceneAsync(SceneManager.GetActiveScene()); }
private void Start() { Fading.BeginFade(-1); }