public void LoadOtherScene(string levelToLoad, bool loadNextLevelThruMyLoading)
 {
     if (loadNextLevelThruMyLoading)
     {
         MyLoading.LoadLevel(levelToLoad);
     }
     else
     {
         SceneManager.LoadScene(levelToLoad);
     }
 }
 private void LoadOtherScene()
 {
     if (LoadNextLevelThruMyLoading)
     {
         MyLoading.LoadLevel(LevelToLoad);
     }
     else
     {
         SceneManager.LoadScene(LevelToLoad);
     }
 }
    private IEnumerator WaitAndLoadOtherSceneIE(string levelToLoad, float secondsToWait, bool loadNextLevelThruMyLoading)
    {
        yield return(new WaitForSeconds(secondsToWait));

        if (loadNextLevelThruMyLoading)
        {
            MyLoading.LoadLevel(levelToLoad);
        }
        else
        {
            SceneManager.LoadScene(levelToLoad);
        }
    }
Пример #4
0
 public void ButtonBackToMenu()
 {
     MyLoading.LoadLevel("Menu");
 }
Пример #5
0
 public void ButtonOptions()
 {
     MyLoading.LoadLevel("Options");
 }
Пример #6
0
 public void ButtonPlay()
 {
     MyLoading.LoadLevel("03_Level");
 }