public static CCActionTween create(float aDuration, string key, float from, float to, CCActionTweenDelegate d) { CCActionTween cCActionTween = new CCActionTween(d); cCActionTween.initWithDuration(aDuration, key, from, to); return(cCActionTween); }
/** creates an initializes the action with the property name (key), and the from and to parameters. */ public static CCActionTween create(float aDuration, string key, float from, float to, CCActionTweenDelegate d) { CCActionTween pRet = new CCActionTween(d); pRet.initWithDuration(aDuration, key, from, to); return pRet; }
/** * Sets a new scale for container in a given duration. * * @param s a new scale value * @param animation duration */ public void SetZoomScaleInDuration(float s, float dt) { if (dt > 0) { if (m_pContainer.Scale != s) { CCActionTween scaleAction = new CCActionTween (dt, "zoomScale", m_pContainer.Scale, s); RunAction(scaleAction); } } else { ZoomScale = s; } }
public override CCFiniteTimeAction reverse() { return(CCActionTween.create(this.m_fDuration, this.m_strKey, this.m_fTo, this.m_fFrom, this.m_pDelegate)); }
public static CCActionTween actionWithDuration(float aDuration, string key, float from, float to, CCActionTweenDelegate d) { return(CCActionTween.create(aDuration, key, from, to, d)); }