/// <summary> /// 暂停一个协成 /// </summary> /// <param name="c"></param> public void StopCoroutines(Coroutine c) { if (null == core) { return; } if (null == c) { return; } core.StopCoroutine(c); }
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); } }