属性控制
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user