浏览代码

恭喜获得特效延迟播放测试

huangxiaoyue 2 年之前
父节点
当前提交
7c6cb3febe
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      GameClient/Assets/Game/HotUpdate/Views/CommonGame/RewardView.cs

+ 10 - 0
GameClient/Assets/Game/HotUpdate/Views/CommonGame/RewardView.cs

@@ -80,8 +80,18 @@ namespace GFGGame
             {
             {
                 _ui.m_listReward.height = maxHeight;
                 _ui.m_listReward.height = maxHeight;
             }
             }
+
+            Timers.inst.Add(1f, 1, OnTimerUpdate, 1);
             //邊框左上角特效
             //邊框左上角特效
+            //_effectUI1 = EffectUIPool.CreateEffectUI(_ui.m_holderTitle, "ui_hd", "GXHD");
+        }
+
+        private void OnTimerUpdate(object param)
+        {
+
+            Timers.inst.Remove(OnTimerUpdate);
             _effectUI1 = EffectUIPool.CreateEffectUI(_ui.m_holderTitle, "ui_hd", "GXHD");
             _effectUI1 = EffectUIPool.CreateEffectUI(_ui.m_holderTitle, "ui_hd", "GXHD");
+
         }
         }
 
 
         protected override void OnHide()
         protected override void OnHide()