void TestCocosNodeDemo::restartCallback(CCObject* pSender) { CCScene* s = new CocosNodeTestScene();//CCScene::node(); s->addChild(restartCocosNodeAction()); CCDirector::sharedDirector()->replaceScene(s); s->release(); }
void TestCocosNodeDemo::restartCallback(Ref* sender) { auto s = new CocosNodeTestScene();//CCScene::create(); s->addChild(restartCocosNodeAction()); Director::getInstance()->replaceScene(s); s->release(); }