Esempio n. 1
0
        private void IncrementDownloadCount()
        {
            downloadingCount++;
            OnDownloadingProgressUpdate?.Invoke();

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

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

            concurrentRequests++;
            OnDownloadingProgressUpdate?.Invoke();
            requestRegistered = true;
        }
Esempio n. 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}");
         }
     }
 }