2D Sidescroller: Make the camera ignore jumps, but not elevation changes

Hello there. Currently, I'm attempting to set up the base coding and such for a 2D sidescrolling platformer that I'm working on. After quite a bit of trouble with getting the camera to follow the player using the scripts from the 2D Platformer tutorial, I've finally managed to get it mostly right. The last thing I need to do is make it so the camera stays centered on the player character when they're on the ground, but not when they're jumping. That is, if you jump and land on some ground of the same elevation, it would stay where it is, but if you jump onto someplace that's higher, it'll stay on the player.

Help is appreciated, of course.

EDIT: Aside from all this Raycast stuff, would I be able to delay the camera along a single axis without changing the others?

You could make the camera follow the point of ground underneath the player instead of the player itself. So run a Raycast from the player straight down and declare the transform of the raycast.point as a static variable and have the camera follow that instead.

Example: In character-

static var camFollow : Transform;

function Update() {
    if (Physics.Raycast (transform.position, -Vector3.up, hit)) {
        camFollow.position = hit.point;
    }
}

In camera-

var disFromChar : float;

function Update() {
   transform.position = Vector3(charScript.camFollow.x, charScript.camFollow.y, disFromChar);
}