public void Update() { m_cur_state.Update(); PeopleFSMState_base new_state = m_cur_state.CheckNextState(); if (new_state != null) { m_cur_state.OnLeaveState(); m_cur_state = new_state; m_cur_state.OnEnterState(); } }
public void Awake() { m_cur_state = new PeopleFMSState_stand(m_obj); m_cur_state.OnEnterState(); }