20 lines
472 B
C#
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
|
|
}
|
|
}
|
|
|
|
}
|