public TweenJob GetJob(int id) { TweenJob job = JobsQueue.Find(x => x.JobID == id); // look for the job in the active queue if (job != null) { return(job); } job = TempJobsQueue.Find(x => x.JobID == id); // look in the temp as well return(job); }
public void RemoveJob(int id) { TweenJob job = JobsQueue.Find(x => x.JobID == id); // look for the job in the active queue if (job != null) { JobsQueue.Remove(job); } job = TempJobsQueue.Find(x => x.JobID == id); // look in the temp as well if (job != null) { TempJobsQueue.Remove(job); } }