/// <summary> /// Continues playing the animation from its current position. If speed < 0, it will play backwards /// from the current position. /// </summary> public virtual void ResumeAnimation() { if (_compositionLayer == null) { _lazyCompositionTasks.Add(composition => { ResumeAnimation(); }); return; } _animator.ResumeAnimation(); }
public void TestResumingMaintainsValue() { _animator.Value = 0.5f; _animator.ResumeAnimation(); Assert.Equal(0.5f, _animator.Value); }