Exemple #1
0
 private void OnCollisionEnter(Collision collision)
 {
     if (collision.gameObject.CompareTag("Enemy"))
     {
         LoadLevelSystem.LoadScene(LoadLevelSystem.MenuSceneName);
     }
     else if (collision.gameObject.CompareTag("Finish"))
     {
         LoadLevelSystem.LoadScene(LoadLevelSystem.GameSceneName);
     }
 }
Exemple #2
0
 private void StartButtonClick()
 {
     LoadLevelSystem.LoadWheelScene();
     FortuneGenerator.Generate();
 }
 private void BackButtonClick()
 {
     LoadLevelSystem.LoadScene(LoadLevelSystem.MenuSceneName);
 }
 private void SettingsButtonClick()
 {
     LoadLevelSystem.LoadScene(LoadLevelSystem.SettingsSceneName);
 }
 private void PlayButtonClick()
 {
     LoadLevelSystem.LoadScene(LoadLevelSystem.GameSceneName);
 }