public static void ClearSoundCache() { if (!GameSetting.CacheSound) { var e = CachePool.GetEnumerator(); using (e) { while (e.MoveNext()) { Resources.UnloadAsset(e.Current.Value); } } CachePool.Clear(); } }