/// <summary> /// 布置场景结束并准备进入时调用此方法以准备动画 /// </summary> public static void PreviewEnterScene() { PreviewSCamera3D.ST3D_Camera.Position = new Point3D(0, 0, PreviewSCamera3D.orginalCameraZIndex); PreviewSCamera3D.FocusOn(PreviewSCamera3D.GAME_SCAMERA_SCR_ROWCOUNT / 2, 0, 1.8, true); }
/// <summary> /// 在镜头聚焦的区块上调整焦距 /// </summary> /// <param name="ratio">缩放的倍率,值域[0.0, +∞],原始尺寸对应于1.0</param> public static void Focus(double ratio) { PreviewSCamera3D.FocusOn(PreviewSCamera3D.SCameraFocusRow, PreviewSCamera3D.SCameraFocusCol, ratio); }