/// <summary> /// Call the specified handler as KeyFrame. /// </summary> /// <param name="handler">Handler.</param> public Tween Call(KeyFrameHandler handler) { KeyFrame keyFrame = new KeyFrame(0, this.easing, handler); this.keyFrames.Add(keyFrame); return(this); }
public KeyFrame(float duration, EasingFunction easing, KeyFrameHandler handler = null) { this.duration = duration; this.startedAt = 0; this.easing = easing; this.handler = handler; iterations = new List <Iteration>(); }