public void LoadStartMenuPosFade() { SetTimeScale(); PlayerGlobalStatus.resetPlayerStatus(); NextLevelLoader.ResetLevelsIndex(); SceneManager.LoadScene(Constantes.START_MENU); }
IEnumerator loadStartMenu(float delay) { yield return(new WaitForSeconds(delay)); SceneManager.LoadScene(Constantes.START_MENU); NextLevelLoader.ResetLevelsIndex(); }
public void LoadStarMenuFromTryAgainPosFade() { try{ SetTimeScale(); PlayerGlobalStatus.resetPlayerStatus(); NextLevelLoader.ResetLevelsIndex(); SceneManager.LoadScene(Constantes.START_MENU); }catch (System.Exception e) { Debug.LogWarning(e); } }