Files
XRLib/Assets/Scripts/UVC/UI/Commands/QuitApplicationCommand.cs
2025-07-28 19:59:35 +09:00

30 lines
720 B
C#

#nullable enable
using UnityEngine;
namespace UVC.UI.Commands
{
// 애플리케이션 종료 커맨드
public class QuitApplicationCommand : ICommand
{
public void Execute(object? parameter = null)
{
// 파라미터는 여기서는 사용되지 않을 수 있음
if (parameter != null)
{
Debug.Log($"QuitApplicationCommand 실행됨 (파라미터 무시됨: {parameter})");
}
else
{
Debug.Log("QuitApplicationCommand 실행됨");
}
#if UNITY_EDITOR
UnityEditor.EditorApplication.isPlaying = false;
#else
Application.Quit();
#endif
}
}
}