Example #1
0
 public virtual void ForceNextJob()
 {
     //Debug.Log("forcing next job");
     if (ToDo.Count != 0)
     {
         //Debug.Log("has job to force job");
         _currJob = ToDo.Dequeue();
         _currJob.Update();
     }
 }
Example #2
0
 public virtual void IsIdle()
 {
     // FIXME: not how its being used, its used as a list of task that happen after another.
     //        maybe have another lsit for diferent things, an on idle list and a seperate todo list
     if ((_currJob == null || _currJob.Status == JobStatus.Done) && ToDo.Count != 0)
     {
         _currJob = ToDo.Dequeue();
     }
     if ((_currJob == null || _currJob.Status == JobStatus.Done))
     {
         return;
     }
     _currJob.Update();
 }