I need to find the animation length of an animation which is attached to a different object.
First I play the animation:
GameObject.Find("myObject").animation.Play("jump");
After this line I want to yield WaitForSeconds(animation.length). But how? I tried:
var length = GameObject.Find("myObject").animation.length("jump");