Procházet zdrojové kódy

Update OnePicNav.cs

wartheking před 3 měsíci
rodič
revize
558c4c24d7
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  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>();