how to make dobuble jump unity 2d code example
Example: how to make dobuble jump unity 2d
if(Input.GetKeyDown(KeyCode.Space))
{
if (isGrounded == true || jumpers < 2)
{
Jump();
isGrounded = false;
jumpers++;
}
}
if(isGrounded == true)
{
jumpers = 0;
}