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.