private void IncrementDownloadCount() { downloadingCount++; OnDownloadingProgressUpdate?.Invoke(); if (VERBOSE) { Debug.Log($"downloadingCount++ = {downloadingCount}"); } }
void UnregisterConcurrentRequest() { if (!requestRegistered) { return; } concurrentRequests--; OnDownloadingProgressUpdate?.Invoke(); requestRegistered = false; }
void RegisterConcurrentRequest() { if (requestRegistered) { return; } concurrentRequests++; OnDownloadingProgressUpdate?.Invoke(); requestRegistered = true; }
private void DecrementDownloadCount() { if (!alreadyDecrementedRefCount && state != State.NONE && state != State.QUEUED) { downloadingCount--; OnDownloadingProgressUpdate?.Invoke(); alreadyDecrementedRefCount = true; if (VERBOSE) { Debug.Log($"(ERROR) downloadingCount-- = {downloadingCount}"); } } }