From 2df58aeacbf1177ec01167bdeccfe89d6a8d5804 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期三, 13 二月 2019 14:20:28 +0800
Subject: [PATCH] 3335 配置表读取重构,修改配置表读取接口1
---
System/Chat/ChatExtentWin.cs | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/System/Chat/ChatExtentWin.cs b/System/Chat/ChatExtentWin.cs
index 00e6d43..8814ffd 100644
--- a/System/Chat/ChatExtentWin.cs
+++ b/System/Chat/ChatExtentWin.cs
@@ -94,7 +94,7 @@
{
_itemCell.items[i].gameObject.SetActive(true);
ItemModel _item = m_DisplayItems[index];
- ItemConfig itemCfg = Config.Instance.Get<ItemConfig>((int)_item.itemInfo.ItemID);
+ ItemConfig itemCfg = ItemConfig.Get((int)_item.itemInfo.ItemID);
_itemCell.items[i].Init(_item);
_itemCell.itemEquips[i].gameObject.SetActive(_item.packType == PackType.rptEquip);
_itemCell.items[i].cellBtn.onClick.RemoveAllListeners();
@@ -117,7 +117,7 @@
chatCenter.recentlyChat = null;
chatCenter.ChangeChatValue(string.Empty, false, false);
}
- ItemConfig _cfg = Config.Instance.Get<ItemConfig>((int)_item.itemInfo.ItemID);
+ ItemConfig _cfg = ItemConfig.Get((int)_item.itemInfo.ItemID);
string _showtext = StringUtility.Contact("[", _cfg.ItemName, "]");
ChatCtrl.Inst.itemPlaceList.Add(_item);
chatCenter.ChangeChatValue(_showtext, true, true);
--
Gitblit v1.8.0