public static void Clean() { if (LoadResDic == null || LoadResDic.Count == 0) { return; } for (int i = LoadResDic.Count - 1; i >= 0; i--) { GameObject obj = LoadResDic.ElementAt(i).Value; if (obj != null) { GameObject.DestroyImmediate(obj); } } LoadResDic.Clear(); }