| | |
| | | TowerPlacementGrid.GRID_OPENCASH_SELF = 100; |
| | | |
| | | // 关键数据需要重置: |
| | | // 1: 局内升级相关的数据 |
| | | SceneTowerLvl.clearInSceneTowerData(); |
| | | // 2: GameUI需要清空. |
| | | GameUI.instance.restartLevel(); |
| | | // 3: AgentInsManager需要重来. |
| | |
| | | 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 |
| | |
| | | // 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; |
| | | } |
| | | |