场景切换
void MyScene::daySceneCallback(CCObject *pSender)
{ CCScene *scene = new MyScene(); CCLayer *pLayer = new LayerDay(); scene->addChild(pLayer, ); |
带过渡效果
.2f, scene); //note |
注意切换场景带过渡效果时使用replaceScene函数
场景切换
void MyScene::daySceneCallback(CCObject *pSender)
{ CCScene *scene = new MyScene(); CCLayer *pLayer = new LayerDay(); scene->addChild(pLayer, ); |
带过渡效果
.2f, scene); //note |
注意切换场景带过渡效果时使用replaceScene函数