public override void LateUpdateState()
        {
            base.LateUpdateState();

            if (!this.IsActiveState)
            {
                return;
            }

            // check if anim is finished

            if (null == m_animState || !m_animState.enabled)
            {
                // anim finished
                // switch to other state

                // try to switch to crouch aim state
                CrouchState.SwitchToAimState(m_ped);
                if (!this.IsActiveState)
                {
                    return;
                }

                // switch to crouch state
                m_ped.SwitchState <CrouchState>();
            }
        }
示例#2
0
 protected override void SwitchToAimState()
 {
     CrouchState.SwitchToAimState(m_ped);
 }
 protected override void SwitchToAimState()
 {
     // can only switch to CrouchAim state
     CrouchState.SwitchToAimState(m_ped);
 }