Here’s the thing:
I got one GameObject with animation, sound and script.
Script goes:
function Start () {
animation["Default Take"].wrapMode = WrapMode.Loop;
for (var state : AnimationState in animation) {
state.speed = -1;
}
animation.Play("Default Take");
}
So it just starts infinite loop of animation.
Now what I want to do is to play sound whenever animation starts from the beggining (loop loops).