fixed
This commit is contained in:
parent
7157a9fa25
commit
908d3e41f2
@ -215,12 +215,15 @@ namespace AlicizaX.Fsm
|
||||
{
|
||||
if (_disposed) return;
|
||||
|
||||
bool flag = false;
|
||||
if (!Initialized)
|
||||
{
|
||||
Reset(Current);
|
||||
goto EDITOR_TRACK;
|
||||
flag = true;
|
||||
}
|
||||
|
||||
if (!flag)
|
||||
{
|
||||
TimeInState += deltaTime;
|
||||
|
||||
// 1) state internal update (may suggest next state)
|
||||
@ -245,8 +248,9 @@ namespace AlicizaX.Fsm
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
EDITOR_TRACK:
|
||||
#if UNITY_EDITOR
|
||||
if (FSMDebugger.Enabled)
|
||||
FSMDebugger.Track(this);
|
||||
|
Loading…
Reference in New Issue
Block a user