Esempio n. 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));
        }
Esempio n. 2
0
 public static void CheckSupport(MonoBehaviour RegisterObject, Action <bool> checkCall)
 {
     IEnumeratorTool.StartCoroutine(CheckSupport(checkCall));
 }
 public void StartWebRequest(string url, WebRequestNetTextureEvent webRequestGetEvent, string savePath = "")
 {
     httpRequestCount = 0;
     IEnumeratorTool.StartCoroutine(RealWebRequest(url, webRequestGetEvent));
 }
Esempio n. 4
0
 public void RegisterRequest(IEnumerator enumerator)
 {
     IEnumeratorTool.StartCoroutine(enumerator);
 }
Esempio n. 5
0
 public DownManager()
 {
     AFStart.RegisterUpdate(OnUpdate);
     RequestIEnumID = IEnumeratorTool.StartCoroutine(SendRequstFromList());
 }