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); } }
public void ButtonBackToMenu() { MyLoading.LoadLevel("Menu"); }
public void ButtonOptions() { MyLoading.LoadLevel("Options"); }
public void ButtonPlay() { MyLoading.LoadLevel("03_Level"); }