コード例 #1
0
        public void Start(double start, double end, InterperlatorDelegate interpolator, float duration)
        {
            this.interpolator = interpolator;
            this.duration     = Math.Max(0f, duration);

            startValue = start;
            endValue   = end;

            Finished = false;
            Value    = startValue;

            difference = endValue - startValue;
            progress   = 0d;
            stepSize   = 1d / this.duration;
        }
コード例 #2
0
 public Animator()
 {
     interpolator = Interpolations.Linear;
     Finished     = true;
 }