This commit is contained in:
Rapandrasmus 2023-10-11 11:31:20 +02:00
parent 7bbf48f70e
commit 8ab345ac50
2 changed files with 4 additions and 1 deletions

View file

@ -391,7 +391,7 @@ namespace HeavenStudio
{
if (SceneManager.GetActiveScene().name != "Editor") return true;
Editor.Editor.instance.ShowQuitPopUp(true);
return false;
return Editor.Editor.instance.ShouldQuit;
}
}
}

View file

@ -154,8 +154,11 @@ namespace HeavenStudio.Editor
_confirmQuitMain.SetActive(show);
}
public bool ShouldQuit = false;
public void QuitGame()
{
ShouldQuit = true;
Application.Quit();
}