Browse Source

修复套装养护特效重叠的bug

leiyasi 1 year ago
parent
commit
e7531e1510

+ 8 - 0
GameClient/Assets/Game/HotUpdate/Views/ClothingFoster/ClothingView.cs

@@ -271,8 +271,16 @@ namespace GFGGame
         {
         {
             _ui.m_comFosterAni.target.visible = true;
             _ui.m_comFosterAni.target.visible = true;
             _ui.m_comFosterAni.m_txtContent.text = string.Format("服装{0}中......", SuitFosterDataManager.Instance.stepNames[_index]);
             _ui.m_comFosterAni.m_txtContent.text = string.Format("服装{0}中......", SuitFosterDataManager.Instance.stepNames[_index]);
+
+            if (_effectUI1 != null)
+            {
+                EffectUIPool.Recycle(_effectUI1);
+                _effectUI1 = null;
+            }
+
             _effectUI1 = EffectUIPool.CreateEffectUI(_ui.m_comFosterAni.m_holder, "ui_gcdh", "ui_gcdh_" + (_index + 1));
             _effectUI1 = EffectUIPool.CreateEffectUI(_ui.m_comFosterAni.m_holder, "ui_gcdh", "ui_gcdh_" + (_index + 1));
 
 
+
             _ui.m_comFosterAni.m_t0.Play(() =>
             _ui.m_comFosterAni.m_t0.Play(() =>
             {
             {
                 ViewManager.Show<ClothingFosterFinishView>(new object[] { _suitId, _index, _propertyList });
                 ViewManager.Show<ClothingFosterFinishView>(new object[] { _suitId, _index, _propertyList });