public void Add(AnimationClip clip, IAbstractAnimator animator) { if (listHead == null) { Setter = ((IAbstractAnimator <T>)animator).Setter; } var item = new Item { Clip = clip, Animator = (IAbstractAnimator <T>)animator }; if (listHead == null) { listHead = item; } else { var tail = listHead; while (tail.Next != null) { tail = tail.Next; } tail.Next = item; } Duration = Math.Max(Duration, clip.EndFrame); }
public void Add(AnimationTrack track, IAbstractAnimator animator) { if (listHead == null) { Setter = ((IAbstractAnimator <T>)animator).Setter; } listHead = new Item { Track = track, Animator = (IAbstractAnimator <T>)animator, Next = listHead }; Duration = Math.Max(Duration, animator.Duration); }
public void Initialize(Animation animation, IAbstractAnimator animator) { this.animation = animation; this.animator = (IAbstractAnimator <T>)animator; this.Setter = this.animator.Setter; }
public AnimatorBinding(IAbstractAnimator animator) { Animable = animator.Animable; TargetPropertyPathComparisonCode = animator.TargetPropertyPathComparisonCode; }