Exemplo n.º 1
0
    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();
        }
    }
Exemplo n.º 2
0
 public void Awake()
 {
     m_cur_state = new PeopleFMSState_stand(m_obj);
     m_cur_state.OnEnterState();
 }