使用CCArmature播放完动画回调怎么处理,看源码CCArmatureAnimation有setMovementEventCallFunc和setFrameEventCallFunc,请问这两个有什么区别。
这是我的代码
CCArmature *pBoom = CCArmature::create(“boom_1”);
pBoom->setAnchorPoint(Anchor_Center);
pBoom->setPosition(ccp(this->boundingBox().size.width/2,this->boundingBox().size.height/2));
pBoom->getAnimation()->playByIndex(0);
pBoom->getAnimation()->setAnimationScale(1.0f);
addChild(pBoom);
// 不是播放完调用回调,将setMovementEventCallFunc换成setFrameEventCallFunc不执行回调。
pBoom->getAnimation()->setMovementEventCallFunc(this, SEL_MovementEventCallFunc(&IconSkill::delCallBack));