标签:
如果想每一秒执行一定动作,可以在init中:
bool HelloWorld::init(){ if ( !CCLayer::init() ) { return false; } this->scheduleUpdate(); return true;}之后定义一个update函数即可
void HelloWorld::update(float dt){ CCLOG("update function");}this->schedule(schedule_selector(clockBackgroundScene::MutUpdate), 1.0f)
标签:
原文地址:http://www.cnblogs.com/notlate/p/4221712.html