方法一: srand(time(NULL)); array->removeAllObjects(); this->removeAllChildren(); init(); 方法二: CCDirector::sharedDirector()->replaceScene(HelloWorld::scene()); 从本场景切换到本场景,但是不能在init()函数中。。
posted on 2013-04-25 15:15 jack_yan 阅读(318) 评论(0) 编辑 收藏 举报