Animation problems

Hey all

I’m having problems with getting two animation scripts to work. The first is with a door which I’m trying to get to open when the player walks into it, however it says it cannot find the animation I’ve made for it. Here is the code:

var doorOpenSound : AudioClip;

function Update () {

}

function OnControllerColliderHit (hit : ControllerColliderHit) {

	if(hit.gameObject.tag == "Door") {

	Debug.Log("Hello");

	var door : GameObject = hit.gameObject;

		OpenDoor(door);

	}

}

function OpenDoor(door: GameObject) {

    audio.PlayOneShot(doorOpenSound);

    door.animation.Play("opendoor");

}

the second is to make a skeleton rise from the ground but the script says it doesn’t know what hit is. Script is:

function OnTriggerEnter (play : Animation){ 
    if (hit.gameObject.tag == "skeletonrise") { 
    Debug.Log("Hello"); 
        animation.Play("skeletonriseani"); 
    } 
} 

Any help would be great. Thanks.

Besides these it looks fine

if(hit.gameObject.tag == ("Door"))
 if(hit.gameObject.tag == ("skeletonrise"))