示例#1
0
 public static void StopCoroutine(string routine)
 {
     if (globalBehaviour != null)
     {
         globalBehaviour.StopCoroutine(routine);
     }
     if (sceneBehaviour != null)
     {
         sceneBehaviour.StopCoroutine(routine);
     }
 }
示例#2
0
 public static void StopCoroutine(string methodName)
 {
     if (behaviour == null)
     {
         UnityEngine.Debug.Log("behaviour is null"); return;
     }
     behaviour.StopCoroutine(methodName);
 }
示例#3
0
 public static void Stop(int id)
 {
     UnityEngine.Coroutine cu;
     if (sCoroutines.TryGetValue(id, out cu))
     {
         instance_.StopCoroutine(cu);
         sCoroutines.Remove(id);
     }
 }