CCFadeOutUpTiles* CCFadeOutUpTiles::create(float duration, const CCSize& gridSize) { CCFadeOutUpTiles *pAction = new CCFadeOutUpTiles(); if (pAction) { if (pAction->initWithDuration(duration, gridSize)) { pAction->autorelease(); } else { CC_SAFE_RELEASE_NULL(pAction); } } return pAction; }
CCFadeOutUpTiles* CCFadeOutUpTiles::actionWithSize(const ccGridSize& gridSize, ccTime time) { CCFadeOutUpTiles *pAction = new CCFadeOutUpTiles(); if (pAction) { if (pAction->initWithSize(gridSize, time)) { pAction->autorelease(); } else { CC_SAFE_RELEASE_NULL(pAction); } } return pAction; }