Пример #1
0
MenuLayer* MenuLayer::create( GameplayView* view )
{
	MenuLayer* layer = new MenuLayer;
	if (layer && layer->init(view))
	{
		layer->autorelease();
		return layer;
	}
	return NULL;
}
Пример #2
0
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;
    }

}