Пример #1
0
        public void SendAsync()
        {
            if (mSending)
            {
                return;
            }
            mSending      = true;
            mThreadRuning = true;
            PublicUpdateManager.AddUpdate(UpdateObj);

            mSendThread = new Thread(SendRequest);
            mSendThread.IsBackground = true;
            mSendThread.Start();
        }
Пример #2
0
 public bool StartUnZipAsync()
 {
     if (mUpdateObject == null)
     {
         DLog.LogError("UpdateObject == null");
         return(false);
     }
     if (mIsStart)
     {
         return(true);
     }
     mIsStart = true;
     sUnZipMap.Add(mKey, this);
     mUnZipObject.StartUnZipAsync();
     PublicUpdateManager.AddUpdate(mUpdateObject);
     return(true);
 }
Пример #3
0
            protected void DisposeNoGcCode()
            {
                if (Manifest != null)
                {
                    Object.DestroyImmediate(Manifest, true);
                }
                mBundleTaskList.Clear();
                if (mWaitLoadBundleList.Count != 0)
                {
                    DLog.LogError(mAppName + ":删除LoaderManager时,发现仍然有未完成的加载动作.可能会对后续资源加载造成影响.");
                    for (int i = mWaitLoadBundleList.Count - 1; i >= 0; i--)
                    {
                        BaseBundle tbundle = mWaitLoadBundleList[i];
                        mBundleList.Remove(tbundle, false);
                        PublicUpdateManager.AddWaitLoadBundle(tbundle);
                    }
                }

                mWaitLoadBundleList.Clear();
                RemoveAllAsset();
            }