function QueueJump() {
    if (Input.GetKeyDown(KeyCode.Space) && !wishJump)
        wishJump = true;
    if (Input.GetKeyUp(KeyCode.Space))
        wishJump = false;
}
/**
 * Queues the next jump just like in Q3
 */
Queues the next jump just like in Q3
Queues the next jump just like in Q3
function QueueJump() {
    if (Input.GetKeyDown(KeyCode.Space) && !wishJump)
        wishJump = true;
    if (Input.GetKeyUp(KeyCode.Space))
        wishJump = false;
}
function QueueJump ( ) { if ( Input . GetKeyDown ( KeyCode . Space ) && ! wishJump ) wishJump = true ; if ( Input . GetKeyUp ( KeyCode . Space ) ) wishJump = false ; }
Queues the next jump just like in Q3
Queues the next jump just like in Q3