Browse Source

修改minimap顺序

wartheking 9 months ago
parent
commit
bfd3a5133b

File diff suppressed because it is too large
+ 0 - 97
Assets/Scene 1.unity


+ 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(5).GetChild(0));
-        runtimePointStaticBind.Add(shaPan.transform.GetChild(5).GetChild(1));
-        runtimePointStaticBind.Add(shaPan.transform.GetChild(5).GetChild(2));
+        runtimePointStaticBind.Add(shaPan.transform.GetChild(6).GetChild(0));
+        runtimePointStaticBind.Add(shaPan.transform.GetChild(6).GetChild(1));
+        runtimePointStaticBind.Add(shaPan.transform.GetChild(6).GetChild(2));
         CameraManager.SwitchCamera(1);
         btns = new List<Button>();
         Button[] bts = this.GetComponentsInChildren<Button>();

+ 1 - 1
Assets/Scripts/UI/UIView/YZT/YZTLayer.cs

@@ -668,7 +668,7 @@ public class YZTLayer : YZTRootLayer
             newPoint.InitPoint(hotPointSprite[(int)(temp.type)], temp.name_pri, temp.name); ;
             newPoint.layerIDs.Add((int)(temp.type));
             newPoint.bingObj = Instantiate(runtimePointObj).gameObject;
-            newPoint.bingObj.transform.SetParent(shaPan.transform.GetChild(6));
+            newPoint.bingObj.transform.SetParent(shaPan.transform.GetChild(8));
             newPoint.bingObj.transform.localEulerAngles = Vector3.zero;
             newPoint.bingObj.transform.localScale = Vector3.one;
             newPoint.bingObj.transform.localPosition = tempLocalPosition;

Some files were not shown because too many files changed in this diff