I'm creating an Complete event to the animation.
anim.state.Complete += OnAnimationComplete;
void OnAnimationComplete(Spine.TrackEntry t) {
if (t == "fall") { // <=============== t NOT A STRING
Debug.Log ("[i]FALL[/i]");
}
Debug.Log (t);
}
I need to grab a string name of the specific animation.
There is no method to getting the TrackEntry string?
Also when you add an event with +=, do you remove it with -=?
06 Jan 2017, 10:06
Got it,
if (t.Animation.Name == "fall")