Refactoring of Jumping

private void Jump() {
    if (touchingPlatform) {
        rigidbody.AddForce(jumpVelocity, ForceMode.VelocityChange);
        touchingPlatform = false; // This allow one jump after colliding with side of platform, but not more
    }
    else if (boosts > 0) {
        rigidbody.AddForce(boostVelocity, ForceMode.VelocityChange);
        boosts -= 1;
        GUIManager.SetBoosts (boosts);
    }
}


Learn More :