public void NewGame() { Progress.Reset(); ScreenEffects.FadeOut(1.2f); CustomCoroutine.WaitThenExecute(1.2f, () => { SceneManager.LoadScene("Treehouse"); }); }
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"); } }
public void Continue() { ScreenEffects.FadeOut(1.5f); Invoke("DoContinue", 1.5f); }
public void Quit() { ScreenEffects.FadeOut(0.7f); CustomCoroutine.WaitThenExecute(0.7f, () => { Application.Quit(); }); }