fixed
This commit is contained in:
parent
7157a9fa25
commit
908d3e41f2
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user