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

24 lines
431 B
C#
Raw Normal View History

2025-02-07 16:09:00 +08:00
using AlicizaX.Runtime;
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-03-20 20:47:26 +08:00
private static IFsmModule _fsm;
}