Exemplo n.º 1
0
    public void NewGame()
    {
        Progress.Reset();
        ScreenEffects.FadeOut(1.2f);

        CustomCoroutine.WaitThenExecute(1.2f, () => { SceneManager.LoadScene("Treehouse"); });
    }
Exemplo n.º 2
0
    private IEnumerator TransitionScene()
    {
        Kid.Locked = true;

        ScreenEffects.FadeOut(fadeOutDuration);

        yield return(new WaitForSeconds(fadeOutDuration));

        Kid.Locked = false;

        if (Progress.Day > Progress.LAST_DAY)
        {
            SceneManager.LoadScene("EndScene");
        }
        else
        {
            SceneManager.LoadScene("ShopNew");
        }
    }
Exemplo n.º 3
0
 public void Continue()
 {
     ScreenEffects.FadeOut(1.5f);
     Invoke("DoContinue", 1.5f);
 }
Exemplo n.º 4
0
 public void Quit()
 {
     ScreenEffects.FadeOut(0.7f);
     CustomCoroutine.WaitThenExecute(0.7f, () => { Application.Quit(); });
 }