ParticleRain* ParticleRain::create() { ParticleRain* pRet = new ParticleRain(); if (pRet && pRet->init()) { pRet->autorelease(); } else { CC_SAFE_DELETE(pRet); } return pRet; }
ParticleRain* ParticleRain::create() { ParticleRain* ret = new (std::nothrow) ParticleRain(); if (ret && ret->init()) { ret->autorelease(); } else { CC_SAFE_DELETE(ret); } return ret; }