From ab77d101bbbd93f7b369103c3bdcc52e193a0748 Mon Sep 17 00:00:00 2001 From: Lihao7788 <2470304407@qq.com> Date: Tue, 11 Mar 2025 13:14:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=9B=B8=E6=9C=BA=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/Item/Show3DCamera.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Assets/Scripts/Item/Show3DCamera.cs b/Assets/Scripts/Item/Show3DCamera.cs index 2c8c1d2b..c5dcb910 100644 --- a/Assets/Scripts/Item/Show3DCamera.cs +++ b/Assets/Scripts/Item/Show3DCamera.cs @@ -48,14 +48,15 @@ public class Show3DCamera : MonoBehaviour yaw = 0; pitch = 0; + // 初始化相机位置 this.inputRect = inputRect; this.targetPos = target.transform.position; - this.rotateSpeed = rotateSpeed; - this.moveSpeed = moveSpeed; - this.distance = distance; - this.distanceMin = distanceMin; - this.distanceMax = distanceMax; - this.pitchMinMax = new Vector2(pitchMin, pitchMax); + //this.rotateSpeed = rotateSpeed; + //this.moveSpeed = moveSpeed; + //this.distance = distance; + //this.distanceMin = distanceMin; + //this.distanceMax = distanceMax; + //this.pitchMinMax = new Vector2(pitchMin, pitchMax); // 初始化相机位置 offset = new Vector3(0, 0, -distance);