Переглянути джерело

摘星抽奖时间统一改为1.2s

huangxiaoyue 1 рік тому
батько
коміт
1afab2232e

+ 2 - 0
GameClient/Assets/Game/HotUpdate/Data/LuckyBoxDataManager.cs

@@ -14,6 +14,8 @@ namespace GFGGame
         public const int ONCE_TIME = 1;
         public const int TEN_TIME = 10;
 
+        public const float ANIMATION_TIME = 1.2f; //翻牌获得物品展示时间
+
         private List<ItemData> _rewardsList;//当前奖励,每次抽奖后刷新
         private Dictionary<int, ItemData> _firstRewardsList = new Dictionary<int, ItemData>();//首次获得的奖励
         private Dictionary<int, List<LuckyBoxBonusData>> _dicShowList = new Dictionary<int, List<LuckyBoxBonusData>>();

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/CommonGame/SuitItemView.cs

@@ -54,7 +54,7 @@ namespace GFGGame
             _ui.m_t_open.Play();
             if (GetSuitItemController.isAuto)
             {
-                Timers.inst.Add(1.2f, 1, WaitAutoEnd);
+                Timers.inst.Add(LuckyBoxDataManager.ANIMATION_TIME, 1, WaitAutoEnd);
             }
         }
         private void OnClickBg()

+ 3 - 2
GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxBonusShowView.cs

@@ -267,6 +267,7 @@ namespace GFGGame
             _ui.m_touchFlipOpen.touchable = true;
             _handClick = true;
             ClickItem(index);
+            //翻牌动画
             Timers.inst.Add(1f, 1, UpClickDataTime, index);
         }
 
@@ -354,7 +355,8 @@ namespace GFGGame
             {
                 TurnItem(i);
             }
-            Timers.inst.Add(1f, 0, UpDataTime);
+            //展示获得物品
+            Timers.inst.Add(LuckyBoxDataManager.ANIMATION_TIME, 0, UpDataTime);
         }
 
         private void UpDataTime(object param = null)
@@ -383,7 +385,6 @@ namespace GFGGame
             UI_LuckyBoxBonusShowItem item = UI_LuckyBoxBonusShowItem.Proxy(_itemObjList[index]);
             if (!_AnimationWait)
                 return;
-
             if (item.m_comIcon.m_imgNew.visible)
             {
                 //判断是否有套装需要展示