Skip to content

Commit f9e0d59

Browse files
committed
修复资源管理器扩展名BUG。
1 parent f774520 commit f9e0d59

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Assets/LuaFramework/Scripts/Manager/ResourceManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public void initialize(Action func) {
1515
byte[] stream;
1616
string uri = string.Empty;
1717
//------------------------------------Shared--------------------------------------
18-
uri = Util.DataPath + "shared.assetbundle";
18+
uri = Util.DataPath + "shared" + AppConst.ExtName;
1919
Debug.LogWarning("LoadFile::>> " + uri);
2020

2121
stream = File.ReadAllBytes(uri);
@@ -35,7 +35,7 @@ public void initialize(Action func) {
3535
public AssetBundle LoadBundle(string name) {
3636
byte[] stream = null;
3737
AssetBundle bundle = null;
38-
string uri = Util.DataPath + name.ToLower() + ".assetbundle";
38+
string uri = Util.DataPath + name.ToLower() + AppConst.ExtName;
3939
stream = File.ReadAllBytes(uri);
4040
bundle = AssetBundle.CreateFromMemoryImmediate(stream); //关联数据的素材绑定
4141
return bundle;

ReadMe.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
游戏案例地址 http://www.ulua.org/showcase.html
1313
框架详细介绍 http://doc.ulua.org/default.asp?cateID=4
1414

15+
//-------------2016-01-25-------------
16+
(1)修复资源管理器扩展名BUG。
17+
1518
//-------------2016-01-24-------------
1619
(1)修复逻辑小bug,添加移除单击监听。
1720

0 commit comments

Comments
 (0)