First animation...and it's not working for me.

Hello,

I am trying to just animate a door attached to a house. I animated the door in 3ds Max and setup the animation component on the house in Unity.

My script has been attached to the house (parent) and the door (child) with both options not working. All I want to do is click on the door and trigger the animation.

function OnMouseDown() 
{
	print("door open");
	animation.Play("open");
}

Any help would be greatly appreciated.

Well, nevermind. I just deleted the door and brought it back into the game. Re-applied the script and now it works…go figure.