public void startLevel(string level)
 {
     //AudioController.PlaySFX("Button_Click");
     //AudioController.PlaySFX("Scene_Transition");
     TWAudioController.StopBGMPlayed();
     TWTransition.FadeIn(() => TWLoading.LoadScene(level));
 }
Exemplo n.º 2
0
 // 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"));
 }
Exemplo n.º 4
0
 public void BackToMenu()
 {
     TWTransition.FadeIn(() => TWLoading.LoadScene("MainMenu"));
 }
Exemplo n.º 5
0
 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"));
 }