以下程序不起作用
var animation = node.getComponent(AnimationComponent)!
animation.on(AnimationComponent.EventType.FINISHED , () => {
console.error("finish")
});
animation.play("effect")
如果你这个动画设置循环了,这个监听就不会起作用,应该去监听动画的最后一帧;
你这没问题啊 输出了的
