소스 검색

好友添加默认背景

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