Sfoglia il codice sorgente

词牌升星动效播放结束才可以点击界面其他按钮

huangxiaoyue 1 anno fa
parent
commit
f6baae892b

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Card/UI_CardFosterUI.cs

@@ -18,6 +18,7 @@ namespace UI.Card
         public GLoader m_loaGuide;
         public GButton m_btnLeft;
         public GButton m_btnRight;
+        public GGraph m_touchLayer;
         public Transition m_t0;
         public Transition m_t1;
         public Transition m_open;
@@ -79,6 +80,7 @@ namespace UI.Card
             m_loaGuide = (GLoader)comp.GetChild("loaGuide");
             m_btnLeft = (GButton)comp.GetChild("btnLeft");
             m_btnRight = (GButton)comp.GetChild("btnRight");
+            m_touchLayer = (GGraph)comp.GetChild("touchLayer");
             m_t0 = comp.GetTransition("t0");
             m_t1 = comp.GetTransition("t1");
             m_open = comp.GetTransition("open");
@@ -100,6 +102,7 @@ namespace UI.Card
             m_loaGuide = null;
             m_btnLeft = null;
             m_btnRight = null;
+            m_touchLayer = null;
             m_t0 = null;
             m_t1 = null;
             m_open = null;

+ 2 - 0
GameClient/Assets/Game/HotUpdate/Views/Card/CardFosterView.cs

@@ -970,6 +970,7 @@ namespace GFGGame
                 EffectUIPool.Recycle(_effectUI8);
                 _effectUI8 = null;
             }
+            _ui.m_touchLayer.touchable = true;
             //升星字体特效
             _effectUI8 = EffectUIPool.CreateEffectUI(_ui.m_ComFosterBottom.m_holderUpStar, "ui_Activity", "SX_Text_01");
             _ui.m_ComFosterBottom.m_starItemAlpha.Play();
@@ -1017,6 +1018,7 @@ namespace GFGGame
                 }
                 UpdateUpStarOfStar();
                 OpenCardUp("star");
+                _ui.m_touchLayer.touchable = false;
             });
         }
 

BIN
GameClient/Assets/ResIn/UI/Card/Card_fui.bytes