瀏覽代碼

Update OnePicNav.cs

wartheking 3 月之前
父節點
當前提交
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>();