public void FinishLevel(bool win) { theWinManager.PlayEndSound(win); theUIManager.FinishLevel(win, theSaveManager.GetAct() + 2); //al sumar dos ignoramos el menu y el tutorial if (!win) { Invoke("Pause", loseTime); } else { Invoke("Pause", 0); } // provisional, es para que funcione el tutorial if (SceneManager.GetActiveScene().name != "Tutorial" && SceneManager.GetActiveScene().name != "Menu") { theSaveManager.FinishLevel(win); theSaveManager.SaveGame(); } }