wangguan
2020-12-15 a5666fce59f464fb9e0813adb4fc85260dd24bc3
Assets/Scripts/TowerDefense/UI/EndGameScreen.cs
@@ -130,8 +130,6 @@
         TowerPlacementGrid.GRID_OPENCASH_SELF = 100;
         // 关键数据需要重置: 
         // 1: 局内升级相关的数据
         SceneTowerLvl.clearInSceneTowerData();
         // 2: GameUI需要清空.
         GameUI.instance.restartLevel();
         // 3: AgentInsManager需要重来.
@@ -246,10 +244,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 +292,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;
      }