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