|
@@ -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();
|