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());}原文链接:https://www.f2er.com/cocos2dx/340322.html