瀏覽代碼

修复打包后水位面板无法打开bug

Void_F 8 月之前
父節點
當前提交
cb25f92ca8
共有 3 個文件被更改,包括 101 次插入3 次删除
  1. 98 1
      Assets/Scene 1.unity
  2. 1 1
      Assets/Scripts/UI/UIView/YZT/WaterTrendPanel.cs
  3. 2 1
      Assets/Scripts/UI/UIView/YZT/YZTLayer.cs

文件差異過大導致無法顯示
+ 98 - 1
Assets/Scene 1.unity


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

@@ -16,7 +16,7 @@ public class WaterTrendPanel : MonoBehaviour
     public string currentStcd;
     public Transform listRoot;
 
-    private void Awake()
+    public void Init()
     {
         _LineChart = this.transform.Find("LineChart").GetComponent<LineChart>();
         listRoot = this.transform.Find("ScrollView/Viewport/Content").transform;

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

@@ -162,7 +162,8 @@ public class YZTLayer : YZTRootLayer
     async void Awake()
     {
         viewMode = ViewMode.miniMap;
-        _waterTrendPanel.Hide();
+        _waterTrendPanel = this.transform.Find("WaterTrendPanel").GetComponent<WaterTrendPanel>();
+        _waterTrendPanel.Init();
         await InitData();
         Init();
         InitLeftBtn();

部分文件因文件數量過多而無法顯示