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