标签:com class blog div code tar log get c tab ble
原因是当前的scheduleOnce还没有执行完成,
可以将scheduleOnce方法改写成另外一种形式,把CCDelayTime和CCCallFunc拼接构造延迟事件调用:
1
2
3 |
CCDelayTime * delayAction = CCDelayTime::create(dt); CCCallFunc * callFunc = CCCallFunc::create(pSelectorTarget, selector); this ->runAction(CCSequence::createWithTwoActions(delayAction, callFunc)); |
标签:com class blog div code tar log get c tab ble
原文地址:http://www.cnblogs.com/xdxer/p/3697116.html