Esempio n. 1
0
    private IEnumerator Process()
    {
        // サーバ時刻を取得する
        yield return(ServerTime.SetFromTimeServer());

        CoroutineAgent.Execute(TickTime());

        IsReady = true;

        while (true)
        {
            if (downloadQueue.Count > 0)
            {
                currentDownload = CoroutineAgent.Execute(downloader.Download(downloadQueue.Dequeue()));
                yield return(currentDownload);

                currentDownload = null;
            }
            yield return(new WaitForEndOfFrame());
        }
    }