Bläddra i källkod

雅集茶艺特效播放修改

huangxiaoyue 1 år sedan
förälder
incheckning
526214d146
1 ändrade filer med 5 tillägg och 1 borttagningar
  1. 5 1
      GameClient/Assets/Game/HotUpdate/Views/League/LeagueSkillUpView.cs

+ 5 - 1
GameClient/Assets/Game/HotUpdate/Views/League/LeagueSkillUpView.cs

@@ -19,6 +19,7 @@ namespace GFGGame
         private List<EffectUI> _effectUIs = new List<EffectUI>();
         private int _type;
         private int saveListPageIndex = 0;
+        private bool _showEff = false;
 
         public override void Dispose()
         {
@@ -86,10 +87,13 @@ namespace GFGGame
             _type = (int)this.viewData;
             _valueBarController.OnShown();
             _valueBarController.Controller(11);
+            _showEff = false;
 
             _ui.m_comSkill.m_list.numItems = LeagueSkillCountCfgArray.Instance.GetCfg(_type).layerCount;
             _ui.m_t0.Play(() =>
             {
+                _showEff = true;
+                _ui.m_comSkill.m_list.numItems = LeagueSkillCountCfgArray.Instance.GetCfg(_type).layerCount;
                 UpdateView(false);
             });
         }
@@ -255,7 +259,7 @@ namespace GFGGame
 
             item.m_imgSuo.visible = !canActive;
 
-            if (isLock && canActive && _effectUIs.Count <= index)
+            if (_showEff && isLock && canActive && _effectUIs.Count <= index)
             {
                 EffectUI _effectUI = EffectUIPool.CreateEffectUI(item.m_holdeLight, "ui_league", "tea_nolearn");
                 _effectUIs.Add(_effectUI);