美文网首页
Unity的Svn提交

Unity的Svn提交

作者: 沉麟 | 来源:发表于2019-05-10 10:58 被阅读0次
using UnityEngine;
using UnityEditor;
using System.Diagnostics;

public class Tools {

    [MenuItem("Tools/转换表格数据")]
    public static void GenerateAsset()
    {
        GenerateAssets.GeneralAssets();
        UnityEngine.Debug.LogError("转换换成...");
    }


    [MenuItem("Tools/清除缓存")]
    public static void ClearData()
    {                                       
        PlayerPrefs.DeleteAll();
        UnityEngine.Debug.LogError("缓存已经清除...");
    }

    [MenuItem("SVN/Update")]
    public static void SvnUpdate()
    {
        Process.Start("TortoiseProc.exe", "/command:update /path:" + Application.dataPath + " /closeonend:0");
    }

    [MenuItem("SVN/Plugins Commit")]
    public static void SvnPluginsCommit()
    {
        Process.Start("TortoiseProc.exe", "/command:commit /path:" + Application.dataPath + "/Plugins /closeonend:0");
    }

    [MenuItem("SVN/Assets Commit")]
    public static void SvnAssetsCommit()
    {
        Process.Start("TortoiseProc.exe", "/command:commit /path:" + Application.dataPath + " /closeonend:0");
    }
}

相关文章

网友评论

      本文标题:Unity的Svn提交

      本文链接:https://www.haomeiwen.com/subject/hcvooqtx.html