Pārlūkot izejas kodu

搭配赛补充提交

zhangyuqian 11 mēneši atpakaļ
vecāks
revīzija
4653d4d9c2

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Data/MatchingCompetitionDataManager.cs

@@ -459,6 +459,7 @@ namespace GFGGame
         public async void AddSceneItem(ItemCfg itemCfg, bool setLayer,int isLeft = 0)
         {
             Vector3 pos = Vector3.zero;
+            DressPropIndex++;
             if (!string.IsNullOrEmpty(itemCfg.resLayer3))
             {
                 GameObject parentGameObj3 = new GameObject(string.Format("{0}_{1}_{2}", itemCfg.id, 3,DressPropIndex++));

+ 0 - 1
GameClient/Assets/Game/HotUpdate/Views/DressUp/PhotographView.cs

@@ -692,7 +692,6 @@ namespace GFGGame
                 GameObject.DestroyImmediate(memoryHitGameObj);
             }
             _itemGameObjs.Remove(memoryHitGameObj);
-            MatchingCompetitionDataManager.Instance.DressPropIndex--;
             _ui.m_comSelectBox.target.visible = false;
         }
 

+ 2 - 0
GameClient/Assets/Game/HotUpdate/Views/MatchingCompetition/MatchingCompetitionGatheringView.cs

@@ -90,6 +90,7 @@ namespace GFGGame
             if (MatchingCompetitionDataManager.Instance.MyNtextture == null)
             {
                 _ui.m_playerImage.texture = null;
+                _ui.m_suitName.visible = true;
                 DressUpObjUI dressUpObjUI;
                 if (_ui.m_suitShow.data == null)
                 {
@@ -108,6 +109,7 @@ namespace GFGGame
                 {
                     dressUpObjUI.Dispose();
                 }
+                _ui.m_suitName.visible = false;
                 _ui.m_suitShow.data = null;
                 _ui.m_playerImage.texture = MatchingCompetitionDataManager.Instance.MyNtextture;
             }

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/MatchingCompetition/MatchingCompetitionSelectView.cs

@@ -78,6 +78,7 @@ namespace GFGGame
                 PrefabManager.Instance.Restore(_sceneObjectRight);
                 _sceneObjectRight = null;
             }
+            MatchingCompetitionDataManager.Instance.DressPropIndex = 0;
             Timers.inst.Remove(CheckGuide);
             base.OnHide();
         }

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/MatchingCompetition/MatchingCompetitionUpLoadView.cs

@@ -76,6 +76,7 @@ namespace GFGGame
             Timers.inst.Remove(UpdateTime);
             Timers.inst.Remove(UpdateCountTime);
             Timers.inst.Remove(CheckGuide);
+            MatchingCompetitionDataManager.Instance.DressPropIndex = 0;
             base.OnHide();     
         }
         protected override void AddEventListener()