diff options
author | chai <215380520@qq.com> | 2023-05-18 19:20:17 +0800 |
---|---|---|
committer | chai <215380520@qq.com> | 2023-05-18 19:20:17 +0800 |
commit | 5bb5da4caebfdc8627e331b4eb5c53457316ec44 (patch) | |
tree | a8dd5d9eea5c563f68f30da397cb890978cbd10a /WorldlineKeepers/Assets/Scripts/Utils/AsyncUtils.cs | |
parent | c66fe8c43a368eb4b23aa1e3104019aabf9e2274 (diff) |
*misc
Diffstat (limited to 'WorldlineKeepers/Assets/Scripts/Utils/AsyncUtils.cs')
-rw-r--r-- | WorldlineKeepers/Assets/Scripts/Utils/AsyncUtils.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/WorldlineKeepers/Assets/Scripts/Utils/AsyncUtils.cs b/WorldlineKeepers/Assets/Scripts/Utils/AsyncUtils.cs new file mode 100644 index 0000000..14bbc86 --- /dev/null +++ b/WorldlineKeepers/Assets/Scripts/Utils/AsyncUtils.cs @@ -0,0 +1,17 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using MovementEffects; + +namespace WK +{ + public static class AsyncUtils + { + public static CoroutineHandle AsyncAction(IEnumerator<float> asyncAct) + { + var handle = Timing.Instance.RunCoroutineOnInstance(asyncAct); + return handle; + } + + } +} |