public static CCSkewTo actionWithDuration(float t, float sx, float sy) { CCSkewTo pSkewTo = new CCSkewTo(); if (pSkewTo != null) { if (pSkewTo.initWithDuration(t, sx, sy)) { //pSkewTo->autorelease(); } else { //CC_SAFE_DELETE(pSkewTo); } } return(pSkewTo); }
public override CCObject copyWithZone(CCZone pZone) { CCZone pNewZone = null; CCSkewTo pCopy = null; if (pZone != null && pZone.m_pCopyObject != null) { //in case of being called at sub class pCopy = (CCSkewTo)(pZone.m_pCopyObject); } else { pCopy = new CCSkewTo(); pZone = pNewZone = new CCZone(pCopy); } base.copyWithZone(pZone); pCopy.initWithDuration(m_fDuration, m_fEndSkewX, m_fEndSkewY); //CC_SAFE_DELETE(pNewZone); return(pCopy); }