@@ -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;
@@ -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();