Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #45 from evolvedant/fix-repeating-jumps
Browse files Browse the repository at this point in the history
Fixed jumping when button held, to match behavior of VRChat.
  • Loading branch information
CyanLaser authored Jul 19, 2021
2 parents 0f59e69 + 9ec99c2 commit 6062ce4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CyanEmu/Scripts/CyanEmuPlayerController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ private void Update()
RotateView();
if (!jump_ && characterController_.isGrounded && jumpSpeed_ > 0)
{
jump_ = Input.GetButton("Jump");
jump_ = Input.GetButtonDown("Jump");
}

if (currentPickup_ != null)
Expand Down

0 comments on commit 6062ce4

Please sign in to comment.