Browse Source

商城按钮物品显示读取路径修改

huangxiaoyue 1 year ago
parent
commit
263b0318a4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      GameClient/Assets/Game/HotUpdate/Data/ShopViewManager.cs

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Data/ShopViewManager.cs

@@ -115,7 +115,7 @@ namespace GFGGame
                     else//道具
                     {
                         ItemCfg costItemCfg = ItemCfgArray.Instance.GetCfg(shopCfg.CostIdReal);
-                        item.m_btnBuy.m_loaIcon.url = ResPathUtil.GetCommonGameResPath(costItemCfg.res);
+                        item.m_btnBuy.m_loaIcon.url = ResPathUtil.GetIconPath(costItemCfg);
                         item.m_btnBuy.m_loaIcon.visible = true;
                         item.m_btnBuy.m_txtIcon.visible = false;
                     }