public static void SvnUpdatePlugins() { Debug.Log("forrceUpdateDll: " + ignoreUpdateDll); SvnTools.SvnExecute("update", "./"); if (!ignoreUpdateDll) { string path = string.Format("{0}/{1}", Application.dataPath, SvnTools.PathDllScripts); if (Directory.Exists(path)) { if (!EditorUtility.DisplayDialog("check again", "是否确认删除代码并替换成dll", "ok", "cancel")) { return; } FileUtil.DeleteFileOrDirectory(path); } SvnTools.SvnUpdate(SvnTools.RepositoryPlugins, SvnTools.PathPlugins); } SvnTools.SvnUpdate(SvnTools.RepositoryRes, SvnTools.PathRes); EditorUtil.ShowMessage("更新游戏资源完成"); }