瀏覽代碼

田野调查补充提交

zhangyuqian 11 月之前
父節點
當前提交
06bcc5be17
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      GameClient/Assets/Game/HotUpdate/Views/FieldWork/FieldWorkLevelView.cs

+ 2 - 1
GameClient/Assets/Game/HotUpdate/Views/FieldWork/FieldWorkLevelView.cs

@@ -66,7 +66,6 @@ namespace GFGGame
         {
             base.OnShown();
             gamey = GameObject.Find("Stage/GRoot/Window - FieldWorkLevelUI/ContentPane/CompChapter/Container/Container");
-            objGuide = _ui.m_chapter.m_compChapterScroll.target.GetChild("g0").asCom;
             _ui.m_Bg.url = ResPathUtil.GetBgImgPath("bg_tydc");
             _ui.m_shopBtn.target.visible = false;
             LevelList = CimbingTowerLevelCfgArray.Instance.dataArray;
@@ -119,6 +118,8 @@ namespace GFGGame
                     isPassCount++;
                 }
             }
+            string ObjGuidename = "g" + isPassCount.ToString();
+            objGuide = _ui.m_chapter.m_compChapterScroll.target.GetChild(ObjGuidename).asCom;
             float levelCount = CimbingTowerLevelCfgArray.Instance.dataArray.Length - isPassCount;
             float height = _ui.m_chapter.target.height;
             float value = levelCount / CimbingTowerLevelCfgArray.Instance.dataArray.Length;