Fixed jumping bug
This commit is contained in:
parent
ba34a2ffb7
commit
bd4ad40bd1
|
@ -206,7 +206,7 @@ namespace Player
|
||||||
private void Jump()
|
private void Jump()
|
||||||
{
|
{
|
||||||
BaseSpeed = MaxAirSpeed;
|
BaseSpeed = MaxAirSpeed;
|
||||||
_playerRigidbody2D.velocity = Vector2.up * DefaultJumpForce;
|
_playerRigidbody2D.velocity = new Vector2(_playerRigidbody2D.velocity.x, DefaultJumpForce);
|
||||||
_canJump = false;
|
_canJump = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue