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