com.alicizax.unity.entry/Runtime/GameApp.Fsm.cs

24 lines
424 B
C#
Raw Normal View History

2025-03-24 13:17:07 +08:00
using AlicizaX;
2025-02-07 16:09:00 +08:00
using AlicizaX.Fsm.Runtime;
public static partial class GameApp
{
/// <summary>
/// 获取有限状态机组件。
/// </summary>
2025-03-20 20:47:26 +08:00
public static IFsmModule Fsm
2025-02-07 16:09:00 +08:00
{
get
{
if (_fsm == null)
{
2025-03-20 20:47:26 +08:00
_fsm = ModuleSystem.GetModule<IFsmModule>();
2025-02-07 16:09:00 +08:00
}
return _fsm;
}
}
2025-04-02 19:28:28 +08:00
internal static IFsmModule _fsm;
2025-03-20 20:47:26 +08:00
}