From b48b49bc17fe12bc6a79665d595d2ef625825630 Mon Sep 17 00:00:00 2001
From: wangguan <wangguan@kt007.com>
Date: Sat, 12 Dec 2020 14:18:00 +0800
Subject: [PATCH] 能量条特效和按钮特效都直接关闭

---
 Assets/Scripts/TowerDefense/UI/HUD/EndlessRandomTower.cs |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/Assets/Scripts/TowerDefense/UI/HUD/EndlessRandomTower.cs b/Assets/Scripts/TowerDefense/UI/HUD/EndlessRandomTower.cs
index ea2d909..4535f9c 100644
--- a/Assets/Scripts/TowerDefense/UI/HUD/EndlessRandomTower.cs
+++ b/Assets/Scripts/TowerDefense/UI/HUD/EndlessRandomTower.cs
@@ -268,6 +268,15 @@
                 needClickPS.Stop();
         }
     }
+
+    public void SetPS(bool isOn)
+    {
+        if (needClickPS.gameObject.activeSelf != isOn)
+        {
+            needClickPS.gameObject.SetActive(isOn);
+        }
+
+    }
     float countDownTime = 0f;
     float countDownLimit = 5f;
     public ParticleSystem needClickPS;//提示点击按钮

--
Gitblit v1.9.1