#pragma strict
var Health = 100;
function Start () {
animation[“Horse_Dead”].layer = 1;
animation[“Horse_Dead”].wrapMode = WrapMode.Once;
}
function Update () {
if (Health == 0);
animation.Play("Horse_Dead");
}
That’s my code for the animation and I have loop time turned of.
p.s. It is a legacy animation