Example #1
0
 public void Init(ICoroutineTimeGetter time)
 {
     if (this.time != null)
     {
         throw new CoroutineException("Cannnot reuse yield.");
     }
     this.time  = time;
     this.Start = time.Now;
 }
Example #2
0
 public void Init(ICoroutineTimeGetter time)
 {
     foreach (var arg in Sequence)
     {
         if (arg is ICoroutineYieldNeedInit yield)
         {
             yield.Init(time);
         }
     }
 }