void RestartScene()
 {
     mainSceneLoader = Instantiate(mainSceneLoader);
     mainSceneLoader.loadIndexedScene(SceneManager.GetActiveScene().buildIndex);
     Time.timeScale = 1;
     SoundManager.Instance.ApplyReverbToMusic();
 }
示例#2
0
 void LoadChosenScene()
 {
     mainSceneLoader = Instantiate(mainSceneLoader);
     mainSceneLoader.loadNamedScene(SceneToLoad);
 }