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