public void DoSomething(bool start, bool stop, bool stopAll) { if (start) { EditorCoroutines.StartCoroutine(Example(), this); } if (stop) { EditorCoroutines.StopCoroutine("Example", this); } if (stopAll) { EditorCoroutines.StopAllCoroutines(this); } }
public static void StopCoroutine(this EditorWindow thisRef, string methodName) { EditorCoroutines.StopCoroutine(methodName, thisRef); }
public static void StopCoroutine(this EditorWindow thisRef, IEnumerator coroutine) { EditorCoroutines.StopCoroutine(coroutine, thisRef); }