Prechádzať zdrojové kódy

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

Void_F 8 mesiacov pred
rodič
commit
cb25f92ca8

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 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();

Niektoré súbory nie sú zobrazené, pretože je v týchto rozdielových dátach zmenené mnoho súborov