fixed
This commit is contained in:
parent
7bbf48f70e
commit
8ab345ac50
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -154,8 +154,11 @@ namespace HeavenStudio.Editor
|
|||
_confirmQuitMain.SetActive(show);
|
||||
}
|
||||
|
||||
public bool ShouldQuit = false;
|
||||
|
||||
public void QuitGame()
|
||||
{
|
||||
ShouldQuit = true;
|
||||
Application.Quit();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue