Exemple #1
0
		public void SelectNextJob ()
		{
			if (jobQue.Count > 0) {
				currentJob = jobQue [0];
				jobQue.RemoveAt (0);
			} else {
				currentJob = null;
			}
		}
Exemple #2
0
		public void AddJob (Job newJob)
		{
			jobQue.Add (newJob);
			newJob.AssignWorker (this);
		}
Exemple #3
0
		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);
		}