소스 검색

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

Void_F 9 달 전
부모
커밋
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();

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.