实现播放完Animate后执行一个方法

createAnimate("Animation_enemyEthit", "enemy_ethit_", 3, 0.06, 1, false );
runAction(Animate::create(AnimationCache::getInstance()->getAnimation("Animation_enemyEthit"))); runAction(Sequence::create(DelayTime::create(0.18), CallFunc::create( [=](){   removeFromParentAndCleanup(true); } ), NULL));

 

posted @ 2016-05-25 16:29  色色先生  阅读(1450)  评论(0编辑  收藏  举报