2.0 对单个 cc.AnimationState 注册回调, 不生效

对单个 cc.AnimationState 注册回调不生效

对整个animation组件注册是生效的。

麻烦发一下具体测试代码

1.cc.animationState注册的回调,现在不会调用,
2.animation的回调,
如果animation.play(animName)就会回调
如果animationState.play(),不会回调
如果先animation.play(animName)调用,再animationState.play(),就可以回调了

assets.zip (49.7 KB)

@panda panda大大 麻烦看下 我们刚升级了2.0 ,现在这块问题挺多的

这个问题,我也遇到过。
对单个clip注册事件;结果是所有的clip都在回掉。
http://forum.cocos.com/t/rc2-cocos-creator-v2-0-1/64731/271?u=bigb518918

有人解决了吗?
对于animationState的注册回调,我自己测试得出的结论为:
onLoad、start对单个animationState注册的回调不会触发,
在触摸回调里面会触发,并且需要手动取消监听。
deemo如下:hungryAndFoolish.zip (492.3 KB)