forked from sin365/AxibugEmuOnline
Merge branch 'master' of http://git.axibug.com/sin365/AxibugEmuOnline
This commit is contained in:
commit
e1d7ef2d13
@ -75,9 +75,12 @@ namespace AxibugEmuOnline.Client.Tools
|
|||||||
if (nextState == null) return;
|
if (nextState == null) return;
|
||||||
|
|
||||||
if (m_current != null) m_current.OnExit(nextState);
|
if (m_current != null) m_current.OnExit(nextState);
|
||||||
nextState.LastState = m_current;
|
|
||||||
nextState.OnEnter(m_current);
|
var preState = m_current;
|
||||||
m_current = nextState;
|
m_current = nextState;
|
||||||
|
|
||||||
|
m_current.LastState = preState;
|
||||||
|
m_current.OnEnter(preState);
|
||||||
}
|
}
|
||||||
|
|
||||||
public T GetState<T>() where T : State, new()
|
public T GetState<T>() where T : State, new()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user