/// <summary> /// Creates and initializes with a duration and a percent /// </summary> public static CCProgressTo actionWithDuration(float duration, float fPercent) { CCProgressTo pProgressTo = new CCProgressTo(); pProgressTo.initWithDuration(duration, fPercent); return(pProgressTo); }
public override CCObject copyWithZone(CCZone pZone) { CCZone pNewZone = null; CCProgressTo pCopy = null; if (pZone != null && pZone.m_pCopyObject != null) { //in case of being called at sub class pCopy = (CCProgressTo)(pZone.m_pCopyObject); } else { pCopy = new CCProgressTo(); pZone = pNewZone = new CCZone(pCopy); } base.copyWithZone(pZone); pCopy.initWithDuration(m_fDuration, m_fTo); return(pCopy); }