Browse Source

商城特效报错修改

huangxiaoyue 1 year ago
parent
commit
b4b436254e

+ 3 - 3
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Store/UI_ListChargeItem.cs

@@ -11,8 +11,8 @@ namespace UI.Store
         public GTextField m_txtName;
         public UI_Component2 m_btnBuy;
         public GTextField m_txtDesc;
-        public GGraph m_holderfEff;
         public GGroup m_grpDouble;
+        public GGraph m_holderfEff;
         public const string URL = "ui://p9mtgheohhx91i";
         public const string PACKAGE_NAME = "Store";
         public const string RES_NAME = "ListChargeItem";
@@ -64,8 +64,8 @@ namespace UI.Store
             m_txtName = (GTextField)comp.GetChild("txtName");
             m_btnBuy = (UI_Component2)UI_Component2.Create(comp.GetChild("btnBuy"));
             m_txtDesc = (GTextField)comp.GetChild("txtDesc");
-            m_holderfEff = (GGraph)comp.GetChild("holderfEff");
             m_grpDouble = (GGroup)comp.GetChild("grpDouble");
+            m_holderfEff = (GGraph)comp.GetChild("holderfEff");
         }
         public void Dispose(bool disposeTarget = false)
         {
@@ -74,8 +74,8 @@ namespace UI.Store
             m_btnBuy.Dispose();
             m_btnBuy = null;
             m_txtDesc = null;
-            m_holderfEff = null;
             m_grpDouble = null;
+            m_holderfEff = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/Store/StoreChargeView.cs

@@ -106,6 +106,7 @@ namespace GFGGame
             if (isDouble) {
                 EffectUI _effectUI = EffectUIPool.CreateEffectUI(item.m_holderfEff, "ui_Small_parts", "store_FirstCharge_Double");
                 _effectUIs.Add(_effectUI);
+                item.m_holderfEff.visible = isDouble;
             }
             UI_ListChargeItem.ProxyEnd();
         }

BIN
GameClient/Assets/ResIn/UI/Store/Store_fui.bytes