Esempio n. 1
0
 public void Reset(bool is_reverse)
 {
     _is_reverse = is_reverse;
     Co.End(_execute);
     _execute = null;
     _EvaluateValue(is_reverse ? _duration : 0.0f);
 }
Esempio n. 2
0
 void EndCoroutine()
 {
     Co.End(_loop_coroutine);
     // or
     // _loop_coroutine.End();
     _count          = 0;
     _loop_coroutine = null;
 }
Esempio n. 3
0
 IEnumerator _Begin()
 {
     Co.End(_execute);
     _execute = this.BeginCoroutine(_Execute());
     return(_execute);
 }
Esempio n. 4
0
 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);
 }