// career  对应的职业  1.刺客 2.法师 3.战士

    public void SetPlayerModelTransform(int carrer, int rideId, Action <float> callBack = null)
    {
        if (carrer == 0)
        {
            Debug.LogError("没有匹配到职业");

            return;
        }

        RideConfigVo      vo    = A3_RideModel.getInstance().GetValueByType <RideConfigVo>(rideId);
        TransformConfigVo trans = vo.transformMapping[carrer];

        rideGo.transform.localPosition    = new Vector3(trans.postionMapping["x"], trans.postionMapping["y"], trans.postionMapping["z"]);
        rideGo.transform.localEulerAngles = new Vector3(trans.rotationMapping["x"], trans.rotationMapping["y"], trans.rotationMapping["z"]);
        rideGo.transform.localScale       = new Vector3(trans.scaleMapping["x"], trans.scaleMapping["y"], trans.scaleMapping["z"]);

        SetPlayerWeaponTransform(carrer);

        if (m_nLayer == EnumLayer.LM_ROLE_INVISIBLE && isUIShow)
        {
            m_curModel.localPosition = Vector3.zero;
            m_curModel.localPosition = m_curModel.localPosition + new Vector3(0, trans.baseoffest + 0.15f, 0);
        }

        if (callBack != null)
        {
            callBack(trans.baseoffest);
            SetFXPosition(true);
        }
    }
    public void ResetPosition()
    {
        if (rideGo == null || rideGo.GetComponent <Animator>().GetBool(EnumAni.ANI_T_RIDERUN) == lastState)
        {
            return;
        }

        lastState = rideGo.GetComponent <Animator>().GetBool(EnumAni.ANI_T_RIDERUN);

        //Debug.LogError(lastState);

        if (lastState)
        {
            float speed = (float)(this.speed - 259) / 100;

            speed = speed < 1f ? 1f : speed;

            playerAni.speed = speed > 1.6f ? 1.6f : speed;   //最大1.6f
        }
        else
        {
            playerAni.speed = 1f;
        }

        RideConfigVo vo = A3_RideModel.getInstance().GetValueByType <RideConfigVo>(this.rideId);

        if (vo == null)
        {
            return;
        }

        TransformConfigVo trans = vo.transformMapping[GetCarrer()];

        if (trans.runpostionMapping == null)
        {
            return;
        }

        if (lastState)
        {
            rideGo.transform.localPosition = new Vector3(trans.runpostionMapping["x"], trans.runpostionMapping["y"], trans.runpostionMapping["z"]);
        }
        else
        {
            rideGo.transform.localPosition = new Vector3(trans.postionMapping["x"], trans.postionMapping["y"], trans.postionMapping["z"]);
        }
    }
    public void SetShadowgoScale(int rideId, GameObject yingzi, float baseoffest)
    {
        if (yingzi == null)
        {
            return;
        }

        Transform _yingzi = yingzi.transform;

        RideConfigVo vo = A3_RideModel.getInstance().GetValueByType <RideConfigVo>(rideId);

        TransformConfigVo trans = vo.transformMapping[GetCarrer()];

        _yingzi.localPosition = Vector3.zero;
        _yingzi.localScale    = Vector3.one;

        _yingzi.localPosition = _yingzi.localPosition + new Vector3(0, -baseoffest, trans.yinzipostionMapping["z"]);

        _yingzi.localScale = new Vector3(trans.yinziscaleMapping["x"], trans.yinziscaleMapping["y"], trans.yinziscaleMapping["z"]);
    }