You are on page 1of 1

if (Input.GetKeyDown(KeyCode.

W) && isFalling == false)


{
GetComponent.<Rigidbody>().velocity.y = jumpHeight;
isFalling = true;
{
function OnCollisionStay ();
{
isFalling = false;
}

You might also like