From 2ae9edd5bfd8b8baabb8cd995485f9ade4faebc9 Mon Sep 17 00:00:00 2001
From: wangguan <wangguan@kt007.com>
Date: Wed, 04 Nov 2020 20:22:50 +0800
Subject: [PATCH] 增加音效

---
 Assets/Scripts/TowerDefense/UI/EndGameScreen.cs |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/Assets/Scripts/TowerDefense/UI/EndGameScreen.cs b/Assets/Scripts/TowerDefense/UI/EndGameScreen.cs
index ca551a6..d0bdd0b 100644
--- a/Assets/Scripts/TowerDefense/UI/EndGameScreen.cs
+++ b/Assets/Scripts/TowerDefense/UI/EndGameScreen.cs
@@ -246,10 +246,10 @@
 		protected void Victory()
 		{
 			OpenEndGameScreen(true);
-			if ((victorySound != null) && (audioSource != null))
-			{
-				audioSource.PlayOneShot(victorySound);
-			}
+			// if ((victorySound != null) && (audioSource != null))
+			// {
+			// 	audioSource.PlayOneShot(victorySound);
+			// }
 			//background.color = winBackgroundColor;
 
 			//first check if there are any more levels after this one
@@ -294,10 +294,10 @@
 			//	nextLevelButton.enabled = false;
 			//	nextLevelButton.gameObject.SetActive(false);
 			//}
-			if ((defeatSound != null) && (audioSource != null))
-			{
-				audioSource.PlayOneShot(defeatSound);
-			}
+			// if ((defeatSound != null) && (audioSource != null))
+			// {
+			// 	audioSource.PlayOneShot(defeatSound);
+			// }
 			//background.color = loseBackgroundColor;
 		}
 

--
Gitblit v1.9.1