MenuLayer* MenuLayer::create( GameplayView* view ) { MenuLayer* layer = new MenuLayer; if (layer && layer->init(view)) { layer->autorelease(); return layer; } return NULL; }
MenuLayer * MenuLayer::createScene(int Tag) { MenuLayer *pRet = new (std::nothrow) MenuLayer(); if (pRet&&pRet->init(Tag)) { pRet->autorelease(); return pRet; } else { delete pRet; pRet = NULL; return NULL; } }