public void Reset(bool is_reverse) { _is_reverse = is_reverse; Co.End(_execute); _execute = null; _EvaluateValue(is_reverse ? _duration : 0.0f); }
void EndCoroutine() { Co.End(_loop_coroutine); // or // _loop_coroutine.End(); _count = 0; _loop_coroutine = null; }
IEnumerator _Begin() { Co.End(_execute); _execute = this.BeginCoroutine(_Execute()); return(_execute); }
public void Stop() { Co.End(_execute); _execute = null; }
/// <summary> /// コルーチン停止 /// </summary> /// <param name="routine">停止するコルーチン</param> /// <param name="type">更新タイプ</param> public static IEnumerator End(this IEnumerator routine, CoroutineDispatcher.eUpdateType type = CoroutineDispatcher.eUpdateType.Update) { Co.End(routine, type); return(routine); }