示例#1
0
void ParallaxDemo::backCallback(Ref* sender)
{
    auto s = new (std::nothrow) ParallaxTestScene();
    s->addChild( backParallaxAction() );
    Director::getInstance()->replaceScene(s);
    s->release();
} 
void ParallaxDemo::backCallback(CCObject* pSender)
{
    CCScene* s = new ParallaxTestScene();
    s->addChild( backParallaxAction() );
    CCDirector::sharedDirector()->replaceScene(s);
    s->release();
}