在此記錄一些學(xué)習(xí)中遇到的問(wèn)題:
1.Layer的切換
auto layer = GameLayer::create();
//設(shè)置顯示在最上方
layer->setLocalZOrder(1);
//對(duì)沒(méi)錯(cuò) 直接addChild()就可以了
this->addChild(layer);
/////////////////////////////////////////////////////
//返回上一層界面 一句話搞定
this->removeFromParentAndCleanup(true);