This replaces the check for a block beneath you within Double Jump with a "jump charge". This results in a much more intuitive double jump where the player can jump once any time after leaving the ground and cannot jump again until after touching the ground again.
Whenever the player touches the ground, they gain a "jump charge". If they double jump, they lose this "jump charge" and must land on the ground again to double jump again.
This replaces the check for a block beneath you within Double Jump with a "jump charge". This results in a much more intuitive double jump where the player can jump once any time after leaving the ground and cannot jump again until after touching the ground again.
Whenever the player touches the ground, they gain a "jump charge". If they double jump, they lose this "jump charge" and must land on the ground again to double jump again.