public void SetState(IInputState state)
    {
        m_bRunbegin = false;

        if (m_state != null)
        {
            m_state.StateEnd();
        }

        m_state = state;
    }