示例#1
0
 public Coroutine StartCoroutine(IEnumerable routine)
 {
     var r = new Coroutine(routine);
     Coroutines.AddLast(r);
     r.Resume();
     return r;
 }
示例#2
0
 public bool Step(Coroutine routine, TimeSpan time)
 {
     return Condition();
 }
示例#3
0
 public bool Step(Coroutine routine, TimeSpan time)
 {
     if (NumFrames <= 0) return true;
     NumFrames--;
     return false;
 }
示例#4
0
 public bool Step(Coroutine routine, TimeSpan time)
 {
     if (Delay <= TimeSpan.Zero) return true;
     Delay -= time;
     return false;
 }
示例#5
0
 public bool Step(Coroutine routine, TimeSpan time)
 {
     return !(Task.Status == TaskStatus.Running);
 }