您的位置:首页 > 其它

Why Schduler function is not called?

2013-01-25 15:41 357 查看
The
reason it didn't work for me is that I didn't add the object to the scene layer. Apparently if it's not part of a scene, it is automatically set to paused. As for you, this should be just fine, but if you don't want to add it as a child, I decided to use the
objective c functions scheduling.

To schedule:

[[CCScheduler sharedScheduler] scheduleSelector:@selector(tick:) forTarget:self interval:0.0 paused:NO];

To unschedule

[[CCScheduler sharedScheduler] unscheduleSelector:@selector(tick:) forTarget:self];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: