Example #1
0
        public override bool CanDoAction(PEActionParam para = null)
        {
            PEActionParamS paramS  = para as PEActionParamS;
            string         animStr = paramS.str;

            return(!string.IsNullOrEmpty(animStr) && animStr != "0");
        }
Example #2
0
        public override void DoAction(PEActionParam para = null)
        {
            motionMgr.SetMaskState(PEActionMask.GetOnTrain, true);

            PEActionParamS paramS = para as PEActionParamS;

            mAnim = paramS.str;
            if (null != equipCmpt)
            {
                equipCmpt.HideEquipmentByVehicle(true);
            }
            if (!string.IsNullOrEmpty(mAnim) && null != anim)
            {
                anim.SetBool(mAnim, true);
            }
            if (null != viewCmpt)
            {
                viewCmpt.ActivateInjured(false);
            }
            if (null != ikCmpt)
            {
                ikCmpt.ikEnable = false;
            }
            if (motionMgr.Entity == MainPlayer.Instance.entity)
            {
                PeCamera.SetBool("OnMonorail", true);
            }
        }
Example #3
0
        void Railway.IPassenger.GetOn(string pose)
        {
            mMotionMgr.FreezePhyState(GetType(), true);
            mMotionMgr.SetMaskState(PEActionMask.OnVehicle, true);
            PEActionParamS param = PEActionParamS.param;

            param.str = pose;
            mMotionMgr.DoActionImmediately(PEActionType.GetOnTrain, param);
        }
        public override void DoAction(PEActionParam para = null)
        {
            motionMgr.SetMaskState(PEActionMask.Abnormal, true);
            PEActionParamS paramS = para as PEActionParamS;

            m_AnimName = paramS.str;
            if (null != anim)
            {
                anim.SetBool(m_AnimName, true);
            }
        }
        public override bool CanDoAction(PEActionParam para = null)
        {
            PEActionParamS paramS  = para as PEActionParamS;
            string         animStr = paramS.str;

            if (animStr != "Pant" && motionMgr.IsActionRunning(PEActionType.Move))
            {
                return(false);
            }
            return(!string.IsNullOrEmpty(animStr) && animStr != "0");
        }
Example #6
0
        public override void DoAction(PEActionParam para = null)
        {
            motionMgr.SetMaskState(PEActionMask.Talk, true);
            PEActionParamS paramS = para as PEActionParamS;

            m_AnimName = paramS.str;
            if (null != anim)
            {
                anim.SetBool(m_AnimName, true);
            }
            if (null != ikCmpt)
            {
                ikCmpt.ikEnable = false;
            }
        }