Пример #1
0
 public void LoadFourthLevel()
 {
     if (Gamemanager.HighestLevel >= 4)
     {
         StartCoroutine(Gamemanager.LoadAsyncronously("Fourth Level", loadingScreen, slider, progressText));
     }
 }
Пример #2
0
 public void PlayGame()
 {
     if (Gamemanager.HighestLevel == 0)
     {
         StartCoroutine(Gamemanager.LoadAsyncronously("First Level", loadingScreen, slider, progressText));
     }
     else
     {
         Gamemanager.LoadScene("Selection menue");
     }
 }
Пример #3
0
 public void Continue()
 {
     if (Gamemanager.LastLevel == 1)
     {
         StartCoroutine(Gamemanager.LoadAsyncronously("First Level", loadingScreen, slider, progressText));
     }
     else if (Gamemanager.LastLevel == 2)
     {
         StartCoroutine(Gamemanager.LoadAsyncronously("Second Level", loadingScreen, slider, progressText));
     }
     else if (Gamemanager.LastLevel == 3)
     {
         StartCoroutine(Gamemanager.LoadAsyncronously("Third Level", loadingScreen, slider, progressText));
     }
     else if (Gamemanager.LastLevel == 4)
     {
         StartCoroutine(Gamemanager.LoadAsyncronously("Fourth Level", loadingScreen, slider, progressText));
     }
 }
Пример #4
0
 public void Exit()
 {
     StartCoroutine(Gamemanager.LoadAsyncronously("Selection menue", loadingScreen, slider, progressText));
 }