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); }
public static void Stop(int id) { UnityEngine.Coroutine cu; if (sCoroutines.TryGetValue(id, out cu)) { instance_.StopCoroutine(cu); sCoroutines.Remove(id); } }