// Get value for custom position public System.Object GetValue(float easPos) { // Use drive to calculate value return drive.Animate(startValue, endValue, change, easPos * duration, duration); }
// Get current animation value public System.Object GetValue() { float easPos = GetEasing(GetPosition()); return(drive.Animate(startValue, endValue, change, easPos * duration, duration)); }