Cocos高低版本场景切换比较
1、
void GameScene::menuAboutCallback(Ref* pSender)
{ isPlaying=false; AboutScene newScene; cocos2d::CCScene* scene=newScene.scene(); CCDirector::sharedDirector()->replaceScene(scene); }
2、
<pre name="code" class="cpp"> GameScene::menuAboutCallback(Ref* pSender) {Director::getInstance()->replaceScene(AboutScene::createScene());}