CCParticleSun* CCParticleSun::createWithTotalParticles(unsigned int numberOfParticles) { CCParticleSun* pRet = new CCParticleSun(); if (pRet && pRet->initWithTotalParticles(numberOfParticles)) { pRet->autorelease(); } else { CC_SAFE_DELETE(pRet); } return pRet; }
// // ParticleSun // CCParticleSun* CCParticleSun::create() { CCParticleSun* pRet = new CCParticleSun(); if (pRet && pRet->init()) { pRet->autorelease(); } else { CC_SAFE_DELETE(pRet); } return pRet; }