示例#1
0
文件: PageCache.cs 项目: sgww/cozy
 public void Clear()
 {
     lock (Locker)
     {
         CachePool.Clear();
     }
 }
示例#2
0
 public static void ClearSoundCache()
 {
     if (!GameSetting.CacheSound)
     {
         var e = CachePool.GetEnumerator();
         using (e)
         {
             while (e.MoveNext())
             {
                 Resources.UnloadAsset(e.Current.Value);
             }
         }
         CachePool.Clear();
     }
 }