Explorar o código

解开水位图写死的ID,修复一张图导航报错

Void_F hai 7 meses
pai
achega
36fcc30aac

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

+ 0 - 2
Assets/Scripts/UI/UIView/YZT/WaterTrendPanel.cs

@@ -27,8 +27,6 @@ public class WaterTrendPanel : MonoBehaviour
 
     public async Task Show(string stcd, string name)
     {
-        //todo 先写死了
-        stcd = "61017467";
         currentStcd = stcd;
         name = name.Replace(" ", "");
         nameText.text = $"{name}站点水位趋势";