コード例 #1
0
        public void addCompletedCount(string trackedGroupName)
        {
            GroupTracker trackedGroup = trackedGroups[trackedGroupName];

            trackedGroup.completedCount++;
            trackedGroup.remainingDownloadCount = trackedGroup.totalDownloadCount - trackedGroup.completedCount;
        }
コード例 #2
0
        public void CheckIsCompletedAllDownloads(string trackedGroupName)
        {
            GroupTracker trackedGroup = trackedGroups[trackedGroupName];

            trackedGroup.remainingDownloadCount = trackedGroup.totalDownloadCount - trackedGroup.completedCount;

            if (trackedGroup.remainingDownloadCount == 0)
            {
                RemoveLoadingPanel();

                if (trackedGroup.isReadyToComplete)
                {
                    CompletedAllDownloadsEventCall(trackedGroupName);
                    trackedGroups.Remove(trackedGroupName);
                }
            }
        }