public void EndDialog() { //Termino el diálogo dialogManRef.CloseDialogWindow(); dialogTime = false; Debug.Log("dialog ended"); //SoundManager.Instance.PlaySound(AppSounds.ENDDIALOG_SFX); if (isCurrentDialogStart) { if (isInterlude && SceneManager.GetActiveScene().name == interludeSceneName) { //Acaba interludio y se vuelve a level selection CheckEndLevel(AppScenes.MAP_SCENE); } else { //Comienza el juego LM = FindObjectOfType <LevelManager>(); LM.StartGameplayAfterDialog(); } } else { //Avisar de que salga ventana de victoria if (LM == null) { LM = FindObjectOfType <LevelManager>(); } else { LM.VictoryScreen(); } } isGamePaused = false; }