public void startLevel(string level) { //AudioController.PlaySFX("Button_Click"); //AudioController.PlaySFX("Scene_Transition"); TWAudioController.StopBGMPlayed(); TWTransition.FadeIn(() => TWLoading.LoadScene(level)); }
// Update is called once per frame void Update() { if (Input.GetKeyDown(KeyCode.Space)) { TWTransition.FadeIn(() => TWLoading.LoadScene("MainScene")); } }
public void PlayGame() { TWTransition.FadeIn(() => TWLoading.LoadScene("MainScene")); }
public void BackToMenu() { TWTransition.FadeIn(() => TWLoading.LoadScene("MainMenu")); }
public void Restart() { TWTransition.FadeIn(() => TWLoading.LoadScene("SampleScene")); }
public void MainMenu() { TWAudioController.PlaySFX("click"); Time.timeScale = 1f; TWTransition.FadeIn(() => TWLoading.LoadScene("MainMenu")); }
public void Retry() { TWAudioController.PlaySFX("click"); TWTransition.FadeIn(() => TWLoading.LoadScene(SceneManager.GetActiveScene().name)); }
public void Continue() { TWAudioController.PlaySFX("click"); TWTransition.FadeIn(() => TWLoading.LoadScene("LevelSelect")); }