Browse Source

每日签到延迟至显示完再可点击关闭

zhangyuqian 1 year ago
parent
commit
8563a7b2c9

+ 4 - 0
GameClient/Assets/Game/HotUpdate/Views/DailyWelfare/DailySignView.cs

@@ -76,9 +76,13 @@ namespace GFGGame
         {
             base.OnShown();
             _ui.m_proSign.m_holder.visible = false;
+            GRoot.inst.touchable = false;
+            _ui.m_t0.SetHook("touch", () => { GRoot.inst.touchable = true; });
             _ui.m_t0.Play(() =>
             {
                 _ui.m_proSign.m_holder.visible = true;
+                //不知道sethook会不会出问题,在这里也加一个
+                GRoot.inst.touchable = true;
                 if (m_holderSign != null)
                 {
                     m_holderSign.visible = true;

BIN
GameClient/Assets/ResIn/UI/DailyWelfare/DailyWelfare_fui.bytes