EditorMotionTest.cs 483 B

123456789101112131415161718192021
  1. using UnityEngine;
  2. using LitMotion.Editor;
  3. using System.Collections;
  4. using UnityEngine.TestTools;
  5. namespace LitMotion.Tests.Editor
  6. {
  7. public class EditorMotionTest
  8. {
  9. [UnityTest]
  10. public IEnumerator Test_1()
  11. {
  12. bool completed = false;
  13. LMotion.Create(0f, 100f, 1f)
  14. .WithOnComplete(() => completed = true)
  15. .Bind(x => Debug.Log(x));
  16. while (!completed) yield return null;
  17. }
  18. }
  19. }