Hi there, I have some code like this:
skeletonAnimation.AnimationState.SetAnimation(0, "A", false).Complete += delegate
{
skeletonAnimation.AnimationState.SetAnimation(0, "B", false);
andSomethingElse();
};
if (somethingHappend) skeletonAnimation.AnimationState.SetAnimation(0, "C", false);
The problem is when 'somethingHappend' happens in some specific timing, spine will play animation "C" for a little time then immediately change to "B".
I know I can remove event by using '-=', but I wonder is there a way to clear ALL events so I don't need to make delegate to a 'official' method.
I did see a method called 'TrackEntry.Reset' which can clear all events, but I'm afraid it might cause other problems.
Or did I do something wrong from the beginning?