feat: add editor-specific quit functionality to RetroMainMenuUI
This commit is contained in:
@@ -153,7 +153,11 @@ public class RetroMainMenuUI : MonoBehaviour
|
||||
CreateTextButton(buttonGroup.transform, "> TERMINATE_PROCESS", TextNormalColor, textWarningColor, () =>
|
||||
{
|
||||
Debug.Log("Quit clicked.");
|
||||
#if UNITY_EDITOR
|
||||
UnityEditor.EditorApplication.isPlaying = false;
|
||||
#else
|
||||
Application.Quit();
|
||||
#endif
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user