public void SelectNextJob () { if (jobQue.Count > 0) { currentJob = jobQue [0]; jobQue.RemoveAt (0); } else { currentJob = null; } }
public void AddJob (Job newJob) { jobQue.Add (newJob); newJob.AssignWorker (this); }
public void ReportSuccess () { currentJob = null; JobManager.ReportSuccess (currentJob); }
public static void ReportSuccess (Job job) { //Debug.Log ("job completed"); }
public static void ReportFailure (Job job) { //Debug.Log ("failed job"); }
public static void AddJobToRemovalList (Job job) { jobRemovalList.Add (job); }