Beispiel #1
0
void TileDemoNew::restartCallback(Ref* sender)
{
    auto s = new (std::nothrow) TileMapTestSceneNew();
    s->addChild(restartTileMapAction());

    Director::getInstance()->replaceScene(s);
    s->release();
}
void TileDemo::restartCallback(Object* sender)
{
    auto s = new TileMapTestScene();
    s->addChild(restartTileMapAction()); 

    Director::getInstance()->replaceScene(s);
    s->release();
}