This commit is contained in:
陈思海 2025-09-10 16:06:07 +08:00
parent 7157a9fa25
commit 908d3e41f2

View File

@ -215,12 +215,15 @@ namespace AlicizaX.Fsm
{ {
if (_disposed) return; if (_disposed) return;
bool flag = false;
if (!Initialized) if (!Initialized)
{ {
Reset(Current); Reset(Current);
goto EDITOR_TRACK; flag = true;
} }
if (!flag)
{
TimeInState += deltaTime; TimeInState += deltaTime;
// 1) state internal update (may suggest next state) // 1) state internal update (may suggest next state)
@ -245,8 +248,9 @@ namespace AlicizaX.Fsm
} }
} }
} }
}
EDITOR_TRACK:
#if UNITY_EDITOR #if UNITY_EDITOR
if (FSMDebugger.Enabled) if (FSMDebugger.Enabled)
FSMDebugger.Track(this); FSMDebugger.Track(this);