Browse Source

红点显示

zhaoyang 3 years ago
parent
commit
43f3ce33c1

+ 3 - 1
GameClient/Assets/Game/HotUpdate/Controller/RedDotController.cs

@@ -29,7 +29,9 @@ namespace GFGGame
                 comRedDot.SetPosition(parentCom.width - comRedDot.width + left, top, 0);
                 comRedDot.AddRelation(comRedDot, RelationType.TopExt_Top);
                 comRedDot.AddRelation(comRedDot, RelationType.RightExt_Right);
-                comRedDot.GetChild("loaIcon").asLoader.url = ResPathUtil.GetCommonGameResPath(res == "" ? "zx_hogndian" : res);
+                string path = ResPathUtil.GetCommonGameResPath(res == "" ? "zx_hogndian" : res);
+                GLoader loaIcon = comRedDot.GetChild("loaIcon").asLoader;
+                loaIcon.url = path;
             }
             else
             {

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/FieldGuide/FieldGuideView.cs

@@ -31,7 +31,7 @@ namespace GFGGame
             _ui.m_compBanner.m_listTab.numItems = _listBannerDatas.Length;
 
             _ui.m_listGuide.itemRenderer = ListGuideItemRenderer;
-            _ui.m_listGuide.numItems = _listGuideDatas.Length;
+            // _ui.m_listGuide.numItems = _listGuideDatas.Length;
 
             _ui.m_btnBack.onClick.Add(OnClickBtnBack);
             _ui.m_listGuide.onClickItem.Add(OnClickListGuideItem);