소스 검색

Update OnePicNav.cs

wartheking 5 달 전
부모
커밋
558c4c24d7
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      Assets/Scripts/UI/UIView/YZT/OnePicNav.cs

+ 3 - 3
Assets/Scripts/UI/UIView/YZT/OnePicNav.cs

@@ -43,9 +43,9 @@ public class OnePicNav : MonoBehaviour
     void InitButton() {
         shaPan = GameObject.FindGameObjectWithTag("ShaPan");
         Debug.Log(shaPan);
-        runtimePointStaticBind.Add(shaPan.transform.GetChild(6).GetChild(0));
-        runtimePointStaticBind.Add(shaPan.transform.GetChild(6).GetChild(1));
-        runtimePointStaticBind.Add(shaPan.transform.GetChild(6).GetChild(2));
+        runtimePointStaticBind.Add(shaPan.transform.Find("FixPoint").GetChild(0));
+        runtimePointStaticBind.Add(shaPan.transform.Find("FixPoint").GetChild(1));
+        runtimePointStaticBind.Add(shaPan.transform.Find("FixPoint").GetChild(2));
         CameraManager.SwitchCamera(1);
         btns = new List<Button>();
         Button[] bts = this.GetComponentsInChildren<Button>();