In air movement troubles.

okay, been trying for3 hours, 4 in the morning, i lost my has wiped my big long explanation TWICE, but basically in a nutshell id really appreciate some help getting this code to allow in air movement.

// Check for jump
if ( character.isGrounded )
{
	if ( !rotateJoystick.IsFingerDown() )
		canJump = true;
	
	
	if ( canJump && jumpjoystick.tapCount == 1 )
	{
		// Apply the current movement to launch velocity
	
		velocity = character.velocity;
		velocity.y = jumpSpeed;
	
		
		
		
		
		canJump = false;
	}
}

your if statement at the start is checking to make sure you are on the ground so before any of the rest of the code will work you have to be grounded.