예제 #1
0
        private void IncrementDownloadCount()
        {
            downloadingCount++;
            OnDownloadingProgressUpdate?.Invoke();

            if (VERBOSE)
            {
                Debug.Log($"downloadingCount++ = {downloadingCount}");
            }
        }
예제 #2
0
        void UnregisterConcurrentRequest()
        {
            if (!requestRegistered)
            {
                return;
            }

            concurrentRequests--;
            OnDownloadingProgressUpdate?.Invoke();
            requestRegistered = false;
        }
예제 #3
0
        void RegisterConcurrentRequest()
        {
            if (requestRegistered)
            {
                return;
            }

            concurrentRequests++;
            OnDownloadingProgressUpdate?.Invoke();
            requestRegistered = true;
        }
예제 #4
0
 private void DecrementDownloadCount()
 {
     if (!alreadyDecrementedRefCount && state != State.NONE && state != State.QUEUED)
     {
         downloadingCount--;
         OnDownloadingProgressUpdate?.Invoke();
         alreadyDecrementedRefCount = true;
         if (VERBOSE)
         {
             Debug.Log($"(ERROR) downloadingCount-- = {downloadingCount}");
         }
     }
 }