Example #1
0
    private IEnumerator WaitForRestart()
    {
        yield return(new WaitForSeconds(1.5f));

        yield return(new WaitUntil(() => Input.anyKeyDown));

        _screen.Reverse(() => SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex));
    }
Example #2
0
    private IEnumerator LoadGameAfterDelay()
    {
        yield return(new WaitForSeconds(_loadDuration));

        _screen.Reverse(LoadGame);
    }