属性控制

This commit is contained in:
2025-09-24 17:05:25 +08:00
parent 090e86c0ee
commit bca1a817a0
2 changed files with 1 additions and 17 deletions

View File

@@ -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);
}