예제 #1
0
    public virtual void DoProgress()
    {
        if (subJobs.Count == 0)
        {
            return;
        }
        ICharacterJob job = subJobs.Peek();

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

        if (job.IsDone())
        {
            jobs.Dequeue();
            DoJobProgress();
            return;
        }
        job.DoProgress();
    }