Beispiel #1
0
void SchedulerTestLayer::restartCallback(Ref* sender)
{
    auto scene = new SchedulerTestScene();
    auto layer = restartSchedulerTest();

    scene->addChild(layer);
    Director::getInstance()->replaceScene(scene);
    scene->release();
}
Beispiel #2
0
void SchedulerTestLayer::restartCallback(CCObject* pSender)
{
    CCScene* pScene = new SchedulerTestScene();
    CCLayer* pLayer = restartSchedulerTest();

    pScene->addChild(pLayer);
    CCDirector::sharedDirector()->replaceScene(pScene);
    pScene->release();
}