Cocos2d-x之CallFunc动作的侦听
//实现动作的监听,动作序列执行完后,弹出一个MessageBox
label->runAction(
Sequence::create(
MoveBy::create(1, Point(100,100)),
RotateBy::create(1, 360),
CallFunc::create(
[](){
//弹出一个MessageBox
MessageBox("Action Complete", "complete");
}),
NULL));