update jump

This commit is contained in:
2026-03-31 08:16:46 +07:00
parent d8cedde99e
commit b52799dae1
12 changed files with 1994 additions and 151 deletions

View File

@@ -43,7 +43,7 @@ namespace OnlyScove.Scripts
Debug.Log($"[PlayerMoveState] View: {(stateMachine.Cam.PlanarRotation.eulerAngles.y)}, InputDir: {inputDir}, MoveDir: {moveDirection}, PlayerRot: {stateMachine.transform.rotation.eulerAngles.y}");
}
Vector3 velocity = moveDirection * stateMachine.RunSpeed;
Vector3 velocity = moveDirection * stateMachine.WalkSpeed;
if (stateMachine.IsGrounded && stateMachine.VelocityY < 0)
{
@@ -95,7 +95,7 @@ namespace OnlyScove.Scripts
return;
}
}
stateMachine.SwitchState(new PlayerJumpState(stateMachine, stateMachine.RunSpeed));
stateMachine.SwitchState(new PlayerJumpState(stateMachine, stateMachine.WalkSpeed));
}
}