8,304
社区成员
发帖
与我相关
我的任务
分享
void floatIn(const float delay,std::function<void()> callback);
void FloatWord::floatIn(const float delay,std::function<void()> callback){
Size visibleSize = Director::getInstance()->getVisibleSize();
MoveTo* move = MoveTo::create(delay,Point(visibleSize.width/2,_begin.y));
CallFunc* call = CallFunc::create(callback);
Sequence* action = Sequence::create(move,call,NULL);
_label->runAction(action);
}