Files
taptap2024_GJ_chidouren/Assets/Scripts/System/StateSystem/State/StateExit.cs
2024-10-16 00:03:41 +08:00

23 lines
496 B
C#

using Framework.FSMLite;
using Framework.Save;
using UnityEngine;
namespace System.StateSystem.State
{
public class StateExit: StateMachine<GameGlobalState>
{
protected override void OnEnter(params object[] args)
{
SaveManager.Instance.Release();
#if UNITY_EDITOR
UnityEditor.EditorApplication.isPlaying = false;
#endif
Application.Quit();
}
protected override void OnExit()
{
}
}
}