Beispiel #1
0
 /// <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);
 }
Beispiel #2
0
 /// <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);
 }