Selaa lähdekoodia

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

Void_F 1 viikko sitten
vanhempi
sitoutus
d7b6ef667f
3 muutettua tiedostoa jossa 394 lisäystä ja 246 poistoa
  1. 293 246
      Assets/Prefabs/UI/XHYZT/SWYJ.prefab
  2. 97 0
      Assets/Scene 1.unity
  3. 4 0
      Assets/Scripts/UI/UIView/SWYJ/SWYJLayer.cs

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 293 - 246
Assets/Prefabs/UI/XHYZT/SWYJ.prefab


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 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(() =>
         {

Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä