Exemplo n.º 1
0
        public static void StopCoroutine(this NewCoroutine coroutine)
        {
            if (MonoUtils == null)
            {
                return;
            }

            coroutine.IsRunning = false;
            MonoUtils.StopCoroutine(coroutine.GetNewCoroutine());
        }
Exemplo n.º 2
0
        public static void StartCoroutine(this NewCoroutine coroutine)
        {
            SetMono();

            if (MonoUtils == null)
            {
                return;
            }

            coroutine.IsRunning = true;
            MonoUtils.StartCoroutine(coroutine.GetNewCoroutine());
        }
Exemplo n.º 3
0
 public static bool IsCompleteOrEnd(this NewCoroutine coroutine)
 {
     return(!coroutine.IsRunning);
 }