wangguan
2020-11-19 51e5211590b58df92c4bbdb8974b14f96276690a
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;
      }