26 lines
530 B
C#
26 lines
530 B
C#
using UnityEngine;
|
|
|
|
namespace XED.Command
|
|
{
|
|
public class ExitProgramCommand : IIrreversibleCommand
|
|
{
|
|
public ExitProgramCommand()
|
|
{
|
|
|
|
}
|
|
|
|
public string id { get => throw new System.NotImplementedException(); set => throw new System.NotImplementedException(); }
|
|
|
|
public bool CanExecute()
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public void Execute()
|
|
{
|
|
Debug.Log("Exit");
|
|
Application.Quit();
|
|
}
|
|
}
|
|
}
|