Пример #1
0
 public static void ClearPersistentDataPath()
 {
     foreach (string dir in Directory.GetDirectories(KResourceManager.GetAppDataPath()))
     {
         Directory.Delete(dir, true);
     }
     foreach (string file in Directory.GetFiles(KResourceManager.GetAppDataPath()))
     {
         File.Delete(file);
     }
 }
Пример #2
0
        private static void ClearAllLuaFiles()
        {
            var productBundlePath = KResourceManager.EditorProductFullPath + "/" + KResourceManager.BundlesDirName;

            DeleteLuaDirectoy(productBundlePath);

            productBundlePath = Application.streamingAssetsPath + "/" + KResourceManager.BundlesDirName;
            DeleteLuaDirectoy(productBundlePath);

            productBundlePath = KResourceManager.GetAppDataPath() + "/" + KResourceManager.BundlesDirName;
            DeleteLuaDirectoy(productBundlePath);

            productBundlePath = Application.dataPath + "/Resources";
            DeleteLuaDirectoy(productBundlePath);

            productBundlePath = Application.dataPath + "/" + EngineConfig.instance.ResourcesBuildDir;
            DeleteLuaDirectoy(productBundlePath);

            AssetDatabase.Refresh();
            Log.Info("Clear lua files over");
        }
Пример #3
0
 public static void OpenPersistentDataPath()
 {
     System.Diagnostics.Process.Start(KResourceManager.GetAppDataPath());
 }