From 9e0ad4beb3ec784d54e42b013af20b0f1924ae81 Mon Sep 17 00:00:00 2001
From: chenxin <chenxin6991@163.com>
Date: Sat, 12 Dec 2020 14:12:46 +0800
Subject: [PATCH] Merge branch 'master' of http://172.16.1.52:8090/r/GemBattle into master

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

diff --git a/Assets/Scripts/TowerDefense/UI/HUD/EndlessRandomTower.cs b/Assets/Scripts/TowerDefense/UI/HUD/EndlessRandomTower.cs
index eac4262..ce9fe26 100644
--- a/Assets/Scripts/TowerDefense/UI/HUD/EndlessRandomTower.cs
+++ b/Assets/Scripts/TowerDefense/UI/HUD/EndlessRandomTower.cs
@@ -261,7 +261,12 @@
     public void SetCountDown(bool isOn, bool isReset = false)
     {
         isCountStartDown = isOn;
-        if (isReset) countDownTime = 0;
+        if (isReset)
+        {
+            countDownTime = 0;
+            if (needClickPS.isPlaying)
+                needClickPS.Stop();
+        }
     }
     float countDownTime = 0f;
     float countDownLimit = 5f;

--
Gitblit v1.9.1