Quantcast
Channel: Answers for "Multiple jump C# Script."
Browsing latest articles
Browse All 4 View Live

Answer by rutter

As you can probably imagine, we're going to need to change this bit: if (playerPhysics.grounded) { amountToMove.y = 0; // Jump if (Input.GetButtonDown("Jump")) { amountToMove.y = jumpHeight; } } First,...

View Article



Answer by pelos

since onCollisionStay might activate and then the RBD is to close will catch the onCollisionStay() i change the code to use onCollisionStay, and onCollisionExit, and left a public variable so the user...

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images