Fixed jumping bug

This commit is contained in:
OverflowNarhoym 2022-02-23 10:29:46 +01:00
parent ba34a2ffb7
commit bd4ad40bd1
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ namespace Player
private void Jump()
{
BaseSpeed = MaxAirSpeed;
_playerRigidbody2D.velocity = Vector2.up * DefaultJumpForce;
_playerRigidbody2D.velocity = new Vector2(_playerRigidbody2D.velocity.x, DefaultJumpForce);
_canJump = false;
}