/// <summary>Stops all coroutines being the routine running on the passed instance.</summary> /// <param name="routine"> The coroutine to stop.</param> /// <param name="thisReference">Reference to the instance of the class containing the method.</param> public static void StopCoroutine(IEnumerator routine, object thisReference) { CreateInstanceIfNeeded(); instance.GoStopCoroutine(routine, thisReference); }