void TextureDemo::backCallback(CCObject* pSender) { CCScene *s = new TextureTestScene(); s->addChild(backTextureTest()); CCDirector::sharedDirector()->replaceScene(s); s->autorelease(); }
void DirectorTest::nextCallback(CCObject* pSender) { CCScene *s = new DirectorTestScene(); s->addChild(nextDirectorTestCase()); CCDirector::sharedDirector()->replaceScene(s); s->autorelease(); }
CCScene *CCScene::create() { CCScene *pRet = new CCScene(); if (pRet && pRet->init()) { pRet->autorelease(); return pRet; } else { CC_SAFE_DELETE(pRet); return NULL; } }