相同逻辑的游戏可以直接复制已有的代码,可是手动更改名字太麻烦了 所以写了个小工具直接重命名.
直接上代码
using UnityEngine;
using System.Collections;
using UnityEditor;
using System.IO;
using System.Collections.Generic;
using System;
using LitJson;
public class RenamScript {
static EditorWindow window;
[MenuItem("Assets/重命名脚本")]
public static void RenamSprite()
{
window = EditorWindow.GetWindow<AddBuildMapUtility>();
window.title = "重命名脚本";
window.maxSize = new Vector2(280, 200);
}
public static void GoRenamScript(string oldStr = "&