Browse Source

大屏水位模拟

Void_F 9 months ago
parent
commit
b9539c7b4e
2 changed files with 366 additions and 590 deletions
  1. 332 590
      Assets/Scene 1.unity
  2. 34 0
      Assets/Scripts/UI/UIView/BigScreen/BigScreenLayer.cs

File diff suppressed because it is too large
+ 332 - 590
Assets/Scene 1.unity


+ 34 - 0
Assets/Scripts/UI/UIView/BigScreen/BigScreenLayer.cs

@@ -22,6 +22,8 @@ public class BigScreenLayer : MonoBehaviour
     public Button clearBtn;
     public Button exitBtn;
     public Button exitJJBtn;
+    public Button ddysButton;
+    public Button exit_ddysButton;
 
     public GameObject gk;
     public GameObject normal;
@@ -40,6 +42,8 @@ public class BigScreenLayer : MonoBehaviour
     public ObsPlayerPanel obsPlayerPanel;
     private InputField _obsSearchInputField;
 
+    public GameObject WaterRangeCtrlPanel;
+    
 
     async void Start()
     {
@@ -82,6 +86,7 @@ public class BigScreenLayer : MonoBehaviour
             normalButton.gameObject.SetActive(false);
             gkButton.gameObject.SetActive(false);
             clearBtn.gameObject.SetActive(false);
+            ddysButton.gameObject.SetActive(false);
         });
         exitBtn.onClick.AddListener(() =>
         {
@@ -91,6 +96,7 @@ public class BigScreenLayer : MonoBehaviour
             normalButton.gameObject.SetActive(true);
             gkButton.gameObject.SetActive(true);
             clearBtn.gameObject.SetActive(true);
+            ddysButton.gameObject.SetActive(true);
         });
 
         exitJJBtn.onClick.AddListener(() =>
@@ -98,6 +104,34 @@ public class BigScreenLayer : MonoBehaviour
             normal.gameObject.SetActive(true);
             gk.gameObject.SetActive(false);
         });
+        
+        ddysButton.onClick.AddListener(() =>
+        {
+            StaticLod.instance.OnFoucusStatic(-1);
+            
+            normal.gameObject.SetActive(false);
+            gk.gameObject.SetActive(false);
+            normalButton.gameObject.SetActive(false);
+            gkButton.gameObject.SetActive(false);
+            clearBtn.gameObject.SetActive(false);
+            WaterRangeCtrlPanel.SetActive(true);
+            
+        });
+        exit_ddysButton.onClick.AddListener(() =>
+        {
+            StaticLod.instance.OnFoucusStatic(0);
+            WaterRangeCtrlPanel.SetActive(false);
+            normal.gameObject.SetActive(true);
+            gk.gameObject.SetActive(false);
+            exitBtn.gameObject.SetActive(false);
+            normalButton.gameObject.SetActive(true);
+            gkButton.gameObject.SetActive(true);
+            clearBtn.gameObject.SetActive(true);
+            ddysButton.gameObject.SetActive(true);
+            
+        });
+    // public Button ddysButton;
+    // public Button exit_ddysButton;
     }
 
     async Task InitData()

Some files were not shown because too many files changed in this diff