瀏覽代碼

好友添加默认背景

zhaoyang 3 年之前
父節點
當前提交
1c4a7cb3c1
共有 1 個文件被更改,包括 2 次插入0 次删除
  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);