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());}



   

posted @ 2016-01-23 17:41  Anzhongliu  阅读(274)  评论(0编辑  收藏  举报