Skip to content
Snippets Groups Projects
Commit 5b5f3fb6 authored by maikeljh's avatar maikeljh
Browse files

[Fix] Exit Game

parent f7e06471
Branches
Tags
No related merge requests found
......@@ -55,7 +55,8 @@ namespace Nightmare
{
DataPersistenceManager.instance.FileMechanism();
DataPersistenceManager.instance.ResetSave();
LevelManager.Instance.Exit();
DataPersistenceManager.instance.RetryGame(0);
LevelManager.Instance.ResetAllAtt();
isGameOver = false;
statsManager.SaveStats();
SceneManager.LoadScene("MainMenu", LoadSceneMode.Single);
......
......@@ -655,6 +655,13 @@ namespace Nightmare
Next();
}
public void ResetAllAtt()
{
currentIndex = 0;
currentQuest = 0;
ResetAtt();
}
public void ResetAtt()
{
announcementDuration = 0;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment