void Update() { if (mWaitLoadBundleList.Count > 0) { for (int i = mWaitLoadBundleList.Count - 1; i >= 0; i--) { BaseBundle tbundle = mWaitLoadBundleList[i]; if (tbundle.IsDone()) { mWaitLoadBundleList.RemoveAt(i); } } } if (mBundleTaskList.Count > 0) { for (int i = mBundleTaskList.Count - 1; i >= 0; i--) { mBundleTaskList[i].IsDone(); } } if (mWaitLoadBundleList.Count == 0 && mBundleTaskList.Count == 0) { ActiveLoader(false); } }
void UpdateWaitLoad() { if (mWaitLoadBundle.Count == 0) { return; } for (int i = mWaitLoadBundle.Count - 1; i >= 0; i--) { BaseBundle tbundle = mWaitLoadBundle[i]; if (tbundle.IsDone()) { mWaitLoadBundle.RemoveAt(i); tbundle.Destory(); } } }