ParticleSystemQuad * ParticleSystemQuad::create() { ParticleSystemQuad *pParticleSystemQuad = new ParticleSystemQuad(); if (pParticleSystemQuad && pParticleSystemQuad->init()) { pParticleSystemQuad->autorelease(); return pParticleSystemQuad; } CC_SAFE_DELETE(pParticleSystemQuad); return NULL; }
ParticleSystemQuad * ParticleSystemQuad::create() { ParticleSystemQuad *particleSystemQuad = new (std::nothrow) ParticleSystemQuad(); if (particleSystemQuad && particleSystemQuad->init()) { particleSystemQuad->autorelease(); return particleSystemQuad; } CC_SAFE_DELETE(particleSystemQuad); return nullptr; }