예제 #1
0
 /// <summary>
 /// 暂停一个协成
 /// </summary>
 /// <param name="c"></param>
 public void StopCoroutines(Coroutine c)
 {
     if (null == core)
     {
         return;
     }
     if (null == c)
     {
         return;
     }
     core.StopCoroutine(c);
 }
예제 #2
0
        public void StopCoroutine(string coreName, IEnumerator routine)
        {
            CoroutineCore curCore = GetCoroutineCore(coreName);

            if (curCore != null)
            {
                curCore.StopCoroutine(routine);
            }
            else
            {
                BaseLogger.Error("you stopCoroutine with error coreName:{0}", coreName);
            }
        }