Beginner Question

Im trying to place a script on an object that triggers an animation in a different object when clicked on?

ex: there is a button on one side of a map and a door on the other when button is pressed it triggers door open animation on door.

thank you for your time.

john

is this the kind of thing you’re looking for?

var door : Transform;
function OnMouseDown () {
	door.animation.Play("OpenDoor");
}