//===============================================状态机 /// <summary> /// Registers the state handler. /// </summary> /// <param name="state">State.</param> /// <param name="ust">Ust.</param> public void RegisterStateHandler(State state, uState <GameManager> ust) { if (dic == null) { dic = new Dictionary <State, uState <GameManager> > (); } dic.Add(state, ust); }
public void ChangeState(uState <uType> nextState) { curState = nextState; }