Beispiel #1
0
            public void Remove(string _key, bool _destory = true)
            {
                _key = BaseBundle.DeleteSuffixName(_key).ToLower();
                if (!Contains(_key))
                {
                    return;
                }
                BaseBundle tbundle = this[_key];

                tbundle.Parent = null;
                mList.Remove(BaseBundle.DeleteSuffixName(_key));
                if (_destory)
                {
                    tbundle.Destory();
                }
            }
 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();
         }
     }
 }