Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
            }
        }