瀏覽代碼

导美术资源脚本

guodong 2 年之前
父節點
當前提交
846df4f054
共有 1 個文件被更改,包括 5 次插入3 次删除
  1. 5 3
      GameClient/Assets/Editor/FileUtil.cs

+ 5 - 3
GameClient/Assets/Editor/FileUtil.cs

@@ -253,7 +253,7 @@ namespace GFGEditor
         }
 
         //清除无资源的Md5数据
-        public static void DeleteUnnecessaryImageMD5(string[] saveNames)
+        private static void DeleteUnnecessaryImageMD5(string[] saveNames)
         {
             for (int j = 0; j < saveNames.Length; j++)
             {
@@ -276,7 +276,7 @@ namespace GFGEditor
                 ImagesClip.WriteSourceImagesMD5(sourceResMD5, saveName);
             }
         }
-        public static void DeleteUnnecessaryImageRes(string targetPath, string[] saveNames)
+        private static void DeleteUnnecessaryImageRes(string targetPath, string[] saveNames)
         {
             string[] includeExtensionNames = new string[] { ".png", ".jpg" };
             if (!Directory.Exists(targetPath))
@@ -323,7 +323,7 @@ namespace GFGEditor
             Debug.Log(targetPath + "清除完成!");
         }
         //清除冗余位置文件
-        public static void DeleteUnnecessaryImagePos(string targetPath)
+        private static void DeleteUnnecessaryImagePos(string targetPath)
         {
             string[] includeExtensionNames = new string[] { ".png", ".jpg" };
             var files = Directory.GetFiles(targetPath);
@@ -371,6 +371,8 @@ namespace GFGEditor
                     if (!existFile)
                     {
                         File.Delete(lfile);
+                        //写入删除文件脚本
+
                     }
                 }
                 foreach (var lDir in localDirs)