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