Пример #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);
     }
 }
Пример #2
0
 private void BackButtonClick()
 {
     LoadLevelSystem.LoadScene(LoadLevelSystem.MenuSceneName);
 }
Пример #3
0
 private void SettingsButtonClick()
 {
     LoadLevelSystem.LoadScene(LoadLevelSystem.SettingsSceneName);
 }
Пример #4
0
 private void PlayButtonClick()
 {
     LoadLevelSystem.LoadScene(LoadLevelSystem.GameSceneName);
 }