AnnulusGames / LitMotion

Lightning-fast and Zero Allocation Tween Library for Unity.
https://annulusgames.github.io/LitMotion/
MIT License
828 stars 66 forks source link

MotionAwaiter is only enabled when UniTask is present. #115

Closed c3-hoge-fuga-piyo closed 8 months ago

c3-hoge-fuga-piyo commented 8 months ago

https://github.com/AnnulusGames/LitMotion/blob/b2684c12023392b689e83465e89a8c1d46172328/src/LitMotion/Assets/LitMotion/Runtime/MotionAwaiter.cs#L1

https://github.com/AnnulusGames/LitMotion/blob/b2684c12023392b689e83465e89a8c1d46172328/src/LitMotion/Assets/LitMotion/Runtime/MotionHandleExtensions.cs#L147-L150

The consistency of the compile switch is not maintained between MotionAwaiter and MotionHandleExtensions.GetAwaiter that references it.

Library\PackageCache\com.annulusgames.lit-motion@b2684c1202\Runtime\MotionHandleExtensions.cs(147,23): error CS0246: The type or namespace name 'MotionAwaiter' could not be found (are you missing a using directive or an assembly reference?)
AnnulusGames commented 8 months ago

Fixed in #117.