/// <summary> /// 进入到开镜状态 /// </summary> public void EnterHoldPose(float time = 0.2f, int fov = 40) { //正对屏幕 M_Transform.DOLocalMove(EndPos, time); M_Transform.DOLocalRotate(EndRot, time); //放大环境射线机 M_EnvCamera.DOFieldOfView(fov, time); }
/// <summary> /// 退出到开镜射击状态 /// </summary> public void ExitHoldPose(float time = 0.2f, int fov = 60) { //摆回正常状态 M_Transform.DOLocalMove(StartPos, time); M_Transform.DOLocalRotate(StartRot, time); //环境摄像机缩小 M_EnvCamera.DOFieldOfView(fov, time); }
/// <summary> /// 开镜状态. /// </summary> public virtual void HoldState(float time = 0.2f, int FOV = 45) { M_Transform.DOLocalMove(HoldPos, time); M_Transform.localRotation = Quaternion.Euler(HoldRotate); Env_Camera.DOFieldOfView(FOV, time); }
/// <summary> /// 普通状态 /// </summary> public virtual void NormalState(float time = 0.2f, int FOV = 60) { M_Transform.DOLocalMove(NormalPos, time); M_Transform.localRotation = Quaternion.Euler(NormalRotate); Env_Camera.DOFieldOfView(FOV, time); }