public override IEnumerator OnBuilding() { CommitPackAssets(); yield return(null); SVNUtility.Commit(Application.dataPath, "资源整理"); }
public void CommitPackAssets() { try { string[] localPaths = new string[] { BuilderPreference.ASSET_PATH, BuilderPreference.TEMP_ASSET_PATH }; SVNUtility.Commit(localPaths, "提交打包资源"); } catch (Exception e) { EditorUtility.DisplayDialog("错误", "资源上传svn错误: " + e.Message, "OK"); } }