Bläddra i källkod

服装店切页签穿戴显示错误

zhaoyang 2 år sedan
förälder
incheckning
a341cda722

+ 5 - 1
GameClient/Assets/Game/HotUpdate/Views/ClothingShop/ClothingShopView.cs

@@ -231,7 +231,7 @@ namespace GFGGame
         private void UpdateRole(bool tween)
         {
             _dressUpObjUI.ResetSceneObj(70, false, true, null, false);
-            _dressUpObjUI.dressUpObj.AddOrRemove(_cfgSelected.itemId, true);
+            _dressUpObjUI.dressUpObj.AddOrRemove(_cfgSelected.itemId, true, true);
             _dressUpObjUI.UpdateWrapper(_ui.m_compHolder.m_compMover.m_holder);
             int type = ItemUtilCS.GetItemSubType(_cfgSelected.itemId);
             float duration = DURATION;
@@ -331,6 +331,10 @@ namespace GFGGame
             // item.m_grpSelect.visible = true;
             // item.target.AddChild()
             ShopCfg cfg = listItem.data as ShopCfg;
+            if (_cfgSelected != null)
+            {
+                _dressUpObjUI.dressUpObj.AddOrRemove(_cfgSelected.itemId, true);
+            }
             _cfgSelected = cfg;
             UpdateRole(tween);
             UpdateSelectedItemInfo();