summaryrefslogtreecommitdiff
path: root/WorldlineKeepers/Assets/Scripts/Utils/AsyncUtils.cs
blob: a6f97eadd54081fc0f7f21d20b380ed49c746707 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using MovementEffects;

namespace WK
{
    public static class AsyncUtils
    {
        /// <summary>
        /// 异步处理任务
        /// </summary>
        /// <param name="asyncAct"></param>
        /// <returns></returns>
        public static CoroutineHandle AsyncAction(IEnumerator<float> asyncAct)
        {
            var handle = Timing.Instance.RunCoroutineOnInstance(asyncAct);
            return handle;
        }

    }
}