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");
}
}
网友评论