From b1b453e5ed478092185aaba62f30c833645e95e5 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期三, 09 一月 2019 13:43:50 +0800
Subject: [PATCH] 5783 【1.4.100】【前端】根据不同的平台支持不同的资源读取
---
Assets/Editor/Tool/UpdateAssetBundleName.cs | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/Assets/Editor/Tool/UpdateAssetBundleName.cs b/Assets/Editor/Tool/UpdateAssetBundleName.cs
index 0d98139..6446666 100644
--- a/Assets/Editor/Tool/UpdateAssetBundleName.cs
+++ b/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()
{
--
Gitblit v1.8.0