EaseTest.cs 556 B

1234567891011121314151617181920212223
  1. using System.Collections;
  2. using UnityEngine;
  3. using UnityEngine.TestTools;
  4. namespace LitMotion.Tests.Runtime
  5. {
  6. public class EaseTest
  7. {
  8. [UnityTest]
  9. public IEnumerator Test_AnimationCurve()
  10. {
  11. var curve = AnimationCurve.EaseInOut(0f, 0f, 1f, 1f);
  12. for (int i = 0; i < 10; i++)
  13. {
  14. yield return LMotion.Create(0f, 10f, 0.2f)
  15. .WithEase(curve)
  16. .RunWithoutBinding()
  17. .ToYieldInteraction();
  18. }
  19. }
  20. }
  21. }