Пример #1
0
        private void TryStartNextIEnumeratorTask()
        {
            if (mResInfoTask.Count == 0)
            {
                return;
            }

            if (mCurrentCoroutineCount >= mMaxCoroutineCount)
            {
                return;
            }

            var task = mResInfoTask.First.Value;

            mResInfoTask.RemoveFirst();

            ++mCurrentCoroutineCount;
            IEnumeratorTool.StartCoroutine(task.DoLoadAsync(OnIEnumeratorTaskFinish));
        }
Пример #2
0
 public static void CheckSupport(MonoBehaviour RegisterObject, Action <bool> checkCall)
 {
     IEnumeratorTool.StartCoroutine(CheckSupport(checkCall));
 }
Пример #3
0
 public void StartWebRequest(string url, WebRequestNetTextureEvent webRequestGetEvent, string savePath = "")
 {
     httpRequestCount = 0;
     IEnumeratorTool.StartCoroutine(RealWebRequest(url, webRequestGetEvent));
 }
Пример #4
0
 public void RegisterRequest(IEnumerator enumerator)
 {
     IEnumeratorTool.StartCoroutine(enumerator);
 }
Пример #5
0
 public DownManager()
 {
     AFStart.RegisterUpdate(OnUpdate);
     RequestIEnumID = IEnumeratorTool.StartCoroutine(SendRequstFromList());
 }