/// <summary> /// Starts a coroutine. /// </summary> /// <param name="routine">The routine to start.</param> /// <returns>An instance of <see cref="EditorYieldInstruction"/> which will run the routine.</returns> public static EditorYieldInstruction Start(IEnumerator routine) { EditorYieldInstruction coroutine = new EditorYieldInstruction(routine); coroutine.Start(); return(coroutine); }
protected override void StopCoroutineImpl(object routine) { EditorYieldInstruction yieldInstruction = routine as EditorYieldInstruction; yieldInstruction.Stop(); }
override protected object StartCoroutineImpl(IEnumerator coroutine) { return(EditorYieldInstruction.Start(coroutine)); }