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