Эх сурвалжийг харах

第二次抽卡无星星特效

zhaoyang 3 жил өмнө
parent
commit
9c0d38dcd6

+ 12 - 0
GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxStarView.cs

@@ -45,6 +45,18 @@ namespace GFGGame
         {
             int index = 0;
             GObject star = _ui.target.GetChild(string.Format("comStar{0}_{1}_{2}", _ui.m_ctrlBuyType.selectedIndex, _ui.m_ctrlRewardsType.selectedIndex, index));
+            while (star != null && star.visible == true)
+            {
+                UI_ComStar comStar = UI_ComStar.Proxy(star);
+                for (int i = comStar.target.numChildren - 1; i >= 0; i--)
+                {
+                    if (comStar.target.GetChildAt(i).name == "imgLine") continue;
+                    comStar.target.RemoveChildAt(i);
+                }
+                index++;
+                star = _ui.target.GetChild(string.Format("comStar{0}_{1}_{2}", _ui.m_ctrlBuyType.selectedIndex, _ui.m_ctrlRewardsType.selectedIndex, index));
+                UI_ComStar.ProxyEnd();
+            }
             foreach (int key in dicGameobj.Keys)
             {
                 List<GameObject> value = dicGameobj[key];