Пример #1
0
        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);
        }
Пример #2
0
 /** 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;
 }
Пример #3
0
 /**
  * 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;
     }
 }
Пример #4
0
 public override CCFiniteTimeAction reverse()
 {
     return(CCActionTween.create(this.m_fDuration, this.m_strKey, this.m_fTo, this.m_fFrom, this.m_pDelegate));
 }
Пример #5
0
 public static CCActionTween actionWithDuration(float aDuration, string key, float from, float to, CCActionTweenDelegate d)
 {
     return(CCActionTween.create(aDuration, key, from, to, d));
 }