示例#1
0
 public void LoadStartMenuPosFade()
 {
     SetTimeScale();
     PlayerGlobalStatus.resetPlayerStatus();
     NextLevelLoader.ResetLevelsIndex();
     SceneManager.LoadScene(Constantes.START_MENU);
 }
示例#2
0
    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);
 }
示例#4
0
 public void LoadStarMenuFromTryAgainPosFade()
 {
     try{
         SetTimeScale();
         PlayerGlobalStatus.resetPlayerStatus();
         NextLevelLoader.ResetLevelsIndex();
         SceneManager.LoadScene(Constantes.START_MENU);
     }catch (System.Exception e) {
         Debug.LogWarning(e);
     }
 }
示例#5
0
    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();
        }
    }
示例#6
0
 public void LoadLevelAgainPosFade()
 {
     PlayerGlobalStatus.ResetLevelCash();
     SceneManager.LoadScene(NextLevelLoader.GetCurrentLevel());
 }
示例#7
0
 public void loadNextGameScenePosFade()
 {
     NextLevelLoader.LoadNextLevel();
 }