コード例 #1
0
        private void InnerCancelLoading(List <IResourceSystemLoadingOperation> stoppedLoadingOperations)
        {
            foreach (var loadingOperation in stoppedLoadingOperations)
            {
                loadingOperation.LoadingCanceled();
                _loadingOperations.Remove(loadingOperation);
            }

            if (_loadingOperations.Count == 0)
            {
                InnerCancelRequest();
                IsLoadingCanceled = true;
                _coroutineManager.StopAllCoroutinesForTarget(this);
                FireComplete();
            }
        }
 public void StopAllCoroutinesForTargetFailedTest() => Assert.Throws <ArgumentNullException>(() => _coroutineManager.StopAllCoroutinesForTarget(null));