所以我有一个选择器需要在一定的延迟/间隔后执行,但我仍然找不到解决方案。放在inCCDelayTime
之前不起作用。但它的工作原理是简单地放置类似or的东西。CCCallFunc
CCSequence
schedule:interval:
performselector:afterdelay
if (shootDelay > kBlastBombLaunchingDelay) {
[self createFireProgressBar];
action = [CCSequence actions:
[CCDelayTime actionWithDuration: kBlastBombLaunchingDelay],
[CCCallFunc actionWithTarget:self selector:@selector(launchBomb)],
nil];
//[self performSelector:@selector(launchBomb) withObject:nil afterDelay:kBlastBombLaunchingDelay];
//[self schedule:@selector(launchBomb) interval:kBlastBombLaunchingDelay];
shootDelay = 0;
}
[self runAction:action];
不知何故,选择器launchBomb
没有被调用。对不起这个愚蠢的问题。