I try to play animation of an object with a script attached on another object.
#pragma strict
var OBJ : GameObject; //Object that have animation, script is attached on another object
var animazione : AnimationClip; //Animation of object
function Start () {
}
function Update () {
}
function On_TouchDown(gesture:Gesture){
OBJ.active = true;
OBJ.animation.Play("animazione");
}
When I play unity say me that not able to found animation.
I think I may have the answer: what have you called the animation on your character? your script (if I am right) is searching on the game Object OBJ for an animation called animazione try getting rid of the speech marks to link it to that animation variable like so;