EaseElasticOut* EaseElasticOut::create(ActionInterval *action, float period/* = 0.3f*/) { EaseElasticOut *ret = new (std::nothrow) EaseElasticOut(); if (ret && ret->initWithAction(action, period)) { ret->autorelease(); return ret; } delete ret; return nullptr; }
EaseElasticOut* EaseElasticOut::create(ActionInterval *action, float period/* = 0.3f*/) { EaseElasticOut *ret = new (std::nothrow) EaseElasticOut(); if (ret) { if (ret->initWithAction(action, period)) { ret->autorelease(); } else { CC_SAFE_RELEASE_NULL(ret); } } return ret; }
EaseElasticOut* EaseElasticOut::create(ActionInterval *pAction, float fPeriod/* = 0.3f*/) { EaseElasticOut *pRet = new EaseElasticOut(); if (pRet) { if (pRet->initWithAction(pAction, fPeriod)) { pRet->autorelease(); } else { CC_SAFE_RELEASE_NULL(pRet); } } return pRet; }