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(); }
private void PlayDeathScence() { if (isLast) { NextLevelLoader.LoadNextLevel(); } Instantiate(DeathFX, gameObject.transform.position, Quaternion.identity); Scoreboard.AddScore(enemyScoreCost); Destroy(gameObject); }
public void LoadStarMenuFromTryAgainPosFade() { try{ SetTimeScale(); PlayerGlobalStatus.resetPlayerStatus(); NextLevelLoader.ResetLevelsIndex(); SceneManager.LoadScene(Constantes.START_MENU); }catch (System.Exception e) { Debug.LogWarning(e); } }
private void RichEnd() { var particle = Instantiate(endOfPath, gameObject.transform.position, Quaternion.identity); particle.Play(); Destroy(gameObject); i = 0; if (playerHp.GetHp() != 0 && GetComponentInChildren <HpSystem>().isLast) { NextLevelLoader.LoadNextLevel(); } }
public void LoadLevelAgainPosFade() { PlayerGlobalStatus.ResetLevelCash(); SceneManager.LoadScene(NextLevelLoader.GetCurrentLevel()); }
public void loadNextGameScenePosFade() { NextLevelLoader.LoadNextLevel(); }