public void goToMain() { enterMenus.Play(); AutoFade AF = GameObject.FindGameObjectWithTag("Fader").GetComponent <AutoFade>(); StartCoroutine(AF.FadeToBlack()); SceneManager.LoadScene("MainMenu"); }
public void goToTutorial() { enterMenus.Play(); AutoFade AF = GameObject.FindGameObjectWithTag("Fader").GetComponent <AutoFade>(); StartCoroutine(AF.FadeToBlack()); toTutorial = true; }
public void EndlessMode() { enterMenus.Play(); AutoFade AF = GameObject.FindGameObjectWithTag("Fader").GetComponent <AutoFade>(); StartCoroutine(AF.FadeToBlack()); toEndlessB = true; }
void backToTown() { AutoFade AF = GameObject.FindGameObjectWithTag("Fader").GetComponent <AutoFade>(); StartCoroutine(AF.FadeToBlack()); enterMenus.Play(); backtotownB = true; }