private static void CopyILHotfixDll() { if (!EditorApplication.isPlayingOrWillChangePlaymode) { string sourceDllPath = GlobalTools.GetDirectorySameLevelOfAssets(SourceDllPath); if (File.Exists(sourceDllPath)) { File.Copy(sourceDllPath, GlobalTools.GetDirectorySameLevelOfAssets(AssetsDllPath), true); AssetDatabase.Refresh(); Log.Info("更新:Assets/ILHotfix/ILHotfix.dll"); } } }
private static void ImportXLuaWebGLPlugins() { string path = GlobalTools.GetDirectorySameLevelOfAssets("/WebGLPlugins"); if (Directory.Exists(path)) { Log.Warning("已存在 XLua WebGLPlugins:" + path); return; } ZipFile.DeCompress(Application.dataPath + "/HTFrameworkXLua/Editor/XLua/WebGLPlugins.zip", GlobalTools.GetDirectorySameLevelOfAssets(""), "", true); Log.Info("已成功导入 XLua WebGLPlugins:" + path); }