Example #1
0
 public void LoadStartMenuPosFade()
 {
     SetTimeScale();
     PlayerGlobalStatus.resetPlayerStatus();
     NextLevelLoader.ResetLevelsIndex();
     SceneManager.LoadScene(Constantes.START_MENU);
 }
Example #2
0
    IEnumerator loadStartMenu(float delay)
    {
        yield return(new WaitForSeconds(delay));

        SceneManager.LoadScene(Constantes.START_MENU);
        NextLevelLoader.ResetLevelsIndex();
    }
Example #3
0
 public void LoadStarMenuFromTryAgainPosFade()
 {
     try{
         SetTimeScale();
         PlayerGlobalStatus.resetPlayerStatus();
         NextLevelLoader.ResetLevelsIndex();
         SceneManager.LoadScene(Constantes.START_MENU);
     }catch (System.Exception e) {
         Debug.LogWarning(e);
     }
 }