示例#1
0
 void WashOut()
 {
     if (noRefResCache.IsFull())
     {
         var size = noRefResCache.Size;
         for (int i = 0; i < size / 2; ++i)
         {
             var item = noRefResCache.Back();
             noRefResCache.Remove(item.CRC);
             item.obj = null;
             loader.ReleaseAsset(item.AssetPath, item.CRC);
         }
     }
 }