From bca1a817a02df224a4761da8abec39797f4016ac Mon Sep 17 00:00:00 2001 From: BobSong <605277374@qq.com> Date: Wed, 24 Sep 2025 17:05:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=9E=E6=80=A7=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Unit/Move/CharacterControllerComponent.cs | 17 ----------------- Fishing2.sln.DotSettings.user | 1 + 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/Assets/Scripts/Fishing2/Unit/Move/CharacterControllerComponent.cs b/Assets/Scripts/Fishing2/Unit/Move/CharacterControllerComponent.cs index af06bdb67..432c3a73a 100644 --- a/Assets/Scripts/Fishing2/Unit/Move/CharacterControllerComponent.cs +++ b/Assets/Scripts/Fishing2/Unit/Move/CharacterControllerComponent.cs @@ -286,22 +286,6 @@ namespace NBF.Fishing2 if (currentMoveState.isMoving) { UpdateMovement(); - - // 检查是否需要自动停止(可选) - // 例如基于时间或距离的条件 - } - else - { - //保持在地面 - // 处理重力 - if (!characterController.isGrounded) - { - verticalVelocity -= gravity * Time.deltaTime; - // 组合移动 - Vector3 totalMovement = currentVelocity * Time.deltaTime; - totalMovement.y = verticalVelocity * Time.deltaTime; - characterController.Move(totalMovement); - } } } @@ -361,7 +345,6 @@ namespace NBF.Fishing2 Vector3 totalMovement = currentVelocity * Time.deltaTime; totalMovement.y = verticalVelocity * Time.deltaTime; - // Character.CollisionFlags = characterController.Move(totalMovement); } diff --git a/Fishing2.sln.DotSettings.user b/Fishing2.sln.DotSettings.user index 3f753fc0a..693d08ffe 100644 --- a/Fishing2.sln.DotSettings.user +++ b/Fishing2.sln.DotSettings.user @@ -11,6 +11,7 @@ ForceIncluded ForceIncluded ForceIncluded + ForceIncluded ForceIncluded ForceIncluded ForceIncluded