Ver Fonte

水位预警的水位面板也改成实例化

Void_F há 1 semana atrás
pai
commit
d7b6ef667f

Diff do ficheiro suprimidas por serem muito extensas
+ 293 - 246
Assets/Prefabs/UI/XHYZT/SWYJ.prefab


Diff do ficheiro suprimidas por serem muito extensas
+ 97 - 0
Assets/Scene 1.unity


+ 4 - 0
Assets/Scripts/UI/UIView/SWYJ/SWYJLayer.cs

@@ -138,12 +138,16 @@ public class SWYJLayer : YZTRootLayer
 
     public Dropdown dropdown;
 
+    public GameObject waterTrendOri;
     public WaterTrendPanel waterTrendPanel;
     private void Awake()
     {
         Init();
         dropdown.ClearOptions();
+
+        waterTrendPanel = Instantiate(waterTrendOri, this.transform).GetComponent<WaterTrendPanel>();
         waterTrendPanel.Init();
+        waterTrendPanel.gameObject.SetActive(false);
         BuYuanDataButton = this.transform.Find("Main/BuYuanButton").GetComponent<Button>();
         BuYuanDataButton.onClick.AddListener(() =>
         {

Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff