Fixed Jumps Again

main
thoopchuk26 4 years ago
parent b5f0e21a9e
commit 727855f3f5

@ -36,7 +36,7 @@ public class movement : MonoBehaviour
// Update is called once per frame // Update is called once per frame
void Update() void Update()
{ {
if (rb2d.velocity.y < 0.1f && rb2d.velocity.y > -0.1f) if (rb2d.velocity.y < 0.001f && rb2d.velocity.y > -0.001f)
{ {
isGrounded = true; isGrounded = true;
numJumps = maxJumps; numJumps = maxJumps;

Loading…
Cancel
Save