I am making a game I am using Input System plug-in and I have platform behavior on my character I have a variable for double jump.
If I'm on the ground double jump is set to =0.
I set it to if I am not on the ground and I hit the jump button on the controller, it checks to see if double jump is less than 1 than it will let me jump again and set it double jump to greater than one so you can't do it more than once.
For some reason every other time I jump from off the ground it sets double jump to 1 without me double jumping.
drive.google.com/file/d/0B6BVfOYrfibCNDM5YTkwbzlnSlk/view