少年修仙传客户端基础资源
client_Wu Xijin
2019-01-09 b1b453e5ed478092185aaba62f30c833645e95e5
Assets/Editor/Tool/UpdateAssetBundleName.cs
@@ -267,6 +267,22 @@
    static string rootPath = Application.dataPath + "/Art/Maps/Scenes";
    static string assetPath = "Assets/Art/Maps/Scenes";
    public static void SetCreateRoleLevel(string pattern)
    {
        var root = Application.dataPath + "/Art/Maps/Scenes/Map_CreateRole";
        var from = Application.dataPath + "/Art/Maps/Scenes/Map_CreateRole/" + "CreateRole_" + pattern + ".unity";
        var to = Application.dataPath + "/Art/Maps/Scenes/" + "CreateRole_001.unity";
        if (File.Exists(from))
        {
            if (!File.Exists(to))
            {
                File.Delete(to);
            }
            File.Move(from, to);
        }
    }
    [MenuItem("程序/设置资源包名/更新Level(All) AssetBundleName")]
    public static void SetAllLevelAssetBundleName()
    {