Bug: CCScheduler#scheduleSelector. Selector already scheduled. Updating interval from: 0.0000 to 0.0000

时间:2014-04-29 20:06:01   收藏:0   阅读:1331

原因是当前的scheduleOnce还没有执行完成,

可以将scheduleOnce方法改写成另外一种形式,把CCDelayTime和CCCallFunc拼接构造延迟事件调用:

1
2
3
CCDelayTime * delayAction = CCDelayTime::create(dt); 
CCCallFunc * callFunc = CCCallFunc::create(pSelectorTarget, selector); 
this->runAction(CCSequence::createWithTwoActions(delayAction, callFunc)); 

  

Bug: CCScheduler#scheduleSelector. Selector already scheduled. Updating interval from: 0.0000 to 0.0000,码迷,mamicode.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!