Browse Source

好友添加默认背景

zhaoyang 3 years ago
parent
commit
1c4a7cb3c1
1 changed files with 2 additions and 0 deletions
  1. 2 0
      GameClient/Assets/Game/HotUpdate/Views/Friend/FriendView.cs

+ 2 - 0
GameClient/Assets/Game/HotUpdate/Views/Friend/FriendView.cs

@@ -67,8 +67,10 @@ namespace GFGGame
             base.OnShown();
             if (_sceneObject == null)
             {
+                CustomSuitData customSuit = CustomSuitDataManager.GetSuitList(CustomSuitDataManager.currentIndex);
                 _sceneObject = GameObject.Instantiate(_scenePrefab);
                 EquipDataCache.cacher.setSceneObj(_sceneObject);
+                EquipDataCache.cacher.AddOrRemove(customSuit.bg, true);
             }
             _ui.m_grpSlogan.visible = false;
             FriendDataManager.Instance.UpdateFriendList(true);