PlaneLayer* PlaneLayer::create() { PlaneLayer* p = new PlaneLayer(); if (p && p->init()) { p->autorelease(); _instance = p; } else { delete p; p = nullptr; } return p; }
PlaneLayer* PlaneLayer::create(){ PlaneLayer *pRet = new PlaneLayer(); if (pRet && pRet->init()) { pRet->autorelease(); sharedPlane = pRet;//»ñÈ¡¾²Ì¬Ö¸Õë return pRet; } else { CC_SAFE_DELETE(pRet); return NULL; } }