Example #1
0
 public override void Update(float dt)
 {
     _innerAction.Update(dt);
     if (_innerAction.IsDone())
     {
         float diff = _innerAction.GetCompletedTime() - _innerAction.GetDuration();
         if (diff > _innerAction.GetDuration())
         {
             diff = diff % _innerAction.GetDuration();
         }
         _innerAction.StartWithTarget(target);
         // to prevent jerk. issue #390, 1247
         _innerAction.Update(0.0f);
         _innerAction.Update(diff);
     }
 }
Example #2
0
 public ActionEase(ActionInterval inner)
 {
     this.inner    = inner;
     this.duration = inner.GetDuration();
 }