Example #1
0
void TestCocosNodeDemo::restartCallback(CCObject* pSender)
{
	CCScene* s = new CocosNodeTestScene();//CCScene::node();
	s->addChild(restartCocosNodeAction()); 

	CCDirector::sharedDirector()->replaceScene(s);
    s->release();
}
Example #2
0
void TestCocosNodeDemo::restartCallback(Ref* sender)
{
    auto s = new CocosNodeTestScene();//CCScene::create();
    s->addChild(restartCocosNodeAction()); 

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