1234567891011121314151617181920212223 |
- using System.Collections;
- using UnityEngine;
- using UnityEngine.TestTools;
- namespace LitMotion.Tests.Runtime
- {
- public class EaseTest
- {
- [UnityTest]
- public IEnumerator Test_AnimationCurve()
- {
- var curve = AnimationCurve.EaseInOut(0f, 0f, 1f, 1f);
- for (int i = 0; i < 10; i++)
- {
- yield return LMotion.Create(0f, 10f, 0.2f)
- .WithEase(curve)
- .RunWithoutBinding()
- .ToYieldInteraction();
- }
- }
- }
- }
|