Files
XRLib/Assets/Scripts/UVC/UI/Commands/QuitApplicationCommand.cs
2025-06-12 19:25:33 +09:00

20 lines
472 B
C#

using UnityEngine;
using UVC.Log;
namespace UVC.UI.Commands
{
// 애플리케이션 종료 커맨드
public class QuitApplicationCommand : ICommand
{
public void Execute()
{
ULog.Debug("애플리케이션을 종료합니다.");
Application.Quit();
#if UNITY_EDITOR
UnityEditor.EditorApplication.isPlaying = false; // 에디터에서 실행 중일 경우 플레이 모드 종료
#endif
}
}
}