private void DoTest(float time, float expected, float scale, bool looped) { ISimpleAnimated animated = Substitute.For <ISimpleAnimated>(); var animator = CreateLinear(scale, looped); animator.Update(time); animator.Apply(animated); animated.Received().Apply(expected); }
public void Apply(ISimpleAnimated animated) { float value = 0; if (currentTime <= timeIn) { value = curveIn.Evaluate(currentTime); } else { value = curveOut.Evaluate(currentTime - timeIn); } animated.Apply(value); }
public void Apply(ISimpleAnimated fadeAway) { fadeAway.Apply(animationCurve.Evaluate(currentTime)); }