示例#1
0
        public static void StopCoroutine(this NewCoroutine coroutine)
        {
            if (MonoUtils == null)
            {
                return;
            }

            coroutine.IsRunning = false;
            MonoUtils.StopCoroutine(coroutine.GetNewCoroutine());
        }
示例#2
0
        public static void StartCoroutine(this NewCoroutine coroutine)
        {
            SetMono();

            if (MonoUtils == null)
            {
                return;
            }

            coroutine.IsRunning = true;
            MonoUtils.StartCoroutine(coroutine.GetNewCoroutine());
        }
示例#3
0
 public static bool IsCompleteOrEnd(this NewCoroutine coroutine)
 {
     return(!coroutine.IsRunning);
 }