Prechádzať zdrojové kódy

Update OnePicNav.cs

wartheking 3 mesiacov pred
rodič
commit
558c4c24d7
1 zmenil súbory, kde vykonal 3 pridanie a 3 odobranie
  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>();