I have a camera movement and when it reachs certain point it calls a function, in this function I want to play an animation in other object.
The code:
var Animator : GameObject;
var clip : AnimationClip;
function TriggerAnimation()
{
Animator.animation.CrossFade(clip.name);
}
![alt text][1]
[1]: /storage/temp/18754-animation_event.png
But it doesn't play, it doesn't give any error and the script is all grayed-out.
Any hint?
↧