Unity的Svn提交

2019-05-10  本文已影响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");
    }
}
上一篇 下一篇

猜你喜欢

热点阅读