public virtual void DoProgress() { if (subJobs.Count == 0) { return; } ICharacterJob job = subJobs.Peek(); if (job.IsDone()) { subJobs.Dequeue(); DoProgress(); return; } job.DoProgress(); }
public void DoJobProgress() { if (jobs.Count == 0) { return; } ICharacterJob job = jobs.Peek(); if (job.IsDone()) { jobs.Dequeue(); DoJobProgress(); return; } job.DoProgress(); }