Forráskód Böngészése

进入换装界面并穿戴套装后,图鉴和套装升级展示资源显示错误

zhaoyang 3 éve
szülő
commit
c98ac28887

+ 1 - 4
GameClient/Assets/Game/HotUpdate/DressUp/DressUpObjDataCache.cs

@@ -31,10 +31,6 @@ namespace GFGGame
             {
                 return _suitId;
             }
-            set
-            {
-                _suitId = value;
-            }
         }
 
         private bool _isPic;
@@ -650,5 +646,6 @@ namespace GFGGame
             }
             return 0;
         }
+
     }
 }

+ 4 - 0
GameClient/Assets/Game/HotUpdate/Views/DressUp/DressUpFightView.cs

@@ -181,6 +181,8 @@ namespace GFGGame
         protected override void OnHide()
         {
             base.OnHide();
+            EquipDataCache.cacher.TakeOffAll();
+
             if (_sceneObject != null)
             {
                 GameObject.Destroy(_sceneObject);
@@ -191,6 +193,8 @@ namespace GFGGame
             _levelCfg = null;
             listTypeItem_SingleFight = null;
             listTypeItem_BuyClothing = null;
+
+
         }
 
         private void OnClickBtnBack()

+ 2 - 1
GameClient/Assets/Game/HotUpdate/Views/DressUp/DressUpView.cs

@@ -112,12 +112,13 @@ namespace GFGGame
             base.OnHide();
             listTypeItem_FreedomDress = null;
             MusicManager.Instance.Play(ResPathUtil.GetMusicPath(ConstMusicName.DEFAULT));
+            EquipDataCache.cacher.TakeOffAll();
+
             if (_sceneObject != null)
             {
                 GameObject.Destroy(_sceneObject);
                 _sceneObject = null;
             }
-            EquipDataCache.cacher.suitId = 0;
         }
 
         private void OnClickBtnBack()