void AtlasTestScene::runThisTest() { CCLayer* pLayer = nextAtlasAction(); addChild(pLayer); CCDirector::sharedDirector()->replaceScene(this); }
void AtlasDemo::nextCallback(NSObject* pSender) { CCScene* s = new AtlasTestScene(); s->addChild( nextAtlasAction() ); CCDirector::sharedDirector()->replaceScene(s); s->release(); }
void AtlasDemo::nextCallback(Object* sender) { auto s = new AtlasTestScene(); s->addChild( nextAtlasAction() ); Director::getInstance()->replaceScene(s); s->release(); }
void AtlasTestScene::runThisTest() { sceneIdx = -1; auto layer = nextAtlasAction(); addChild(layer); Director::getInstance()->replaceScene(this); }