CCComRender* CCComRender::create(void) { CCComRender * pRet = new CCComRender(); if (pRet != NULL && pRet->init()) { pRet->autorelease(); } else { CC_SAFE_DELETE(pRet); } return pRet; }
CCComRender* CCComRender::create(cocos2d::CCNode *pNode, const char *comName) { CCComRender * pRet = new CCComRender(pNode, comName); if (pRet != NULL && pRet->init()) { pRet->autorelease(); } else { CC_SAFE_DELETE(pRet); } return pRet; }