I guess SmoothSkeletonAnimator should can listen this event, but after test, it can not listen them.
_animationControler.addEventListener(AnimatorEvent.SEQUENCE_DONE, onAnimationDone);
_animationControler.addEventListener(AnimatorEvent.STOP, onEnimEnd)
so have to add event listener to every SkeletonAnimationSequence.
like this:
man.animIdle = animList[0];
anim = _modelManager.getAnimation(man.animIdle) ;
if (anim != null) {
man.animationControler.addSequence(anim as SkeletonAnimationSequence);
man.animationControler.play(man.animIdle);
}
My question if we have Hundreds of animations, we have to add hundreds event listener?
Could administrator give us a explain?
Thanks very much!