private IEnumerator WaitForRestart() { yield return(new WaitForSeconds(1.5f)); yield return(new WaitUntil(() => Input.anyKeyDown)); _screen.Reverse(() => SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex)); }
private IEnumerator LoadGameAfterDelay() { yield return(new WaitForSeconds(_loadDuration)); _screen.Reverse(LoadGame); }