| | |
| | | public void NewbieUpdateLevel() |
| | | { |
| | | ++CurrentLevel; |
| | | EndlessBuffData.InitEndlessBuffPool(CurrentLevel); |
| | | WaveManager.InitPort(CurrentLevel); |
| | | IsAllWaveCompleted = false; |
| | | EndlessUIStart.instance.Restart(); |
| | |
| | | { |
| | | if (EndlessGameUI.instance.state == EndlessGameUI.State.GameOver) return; |
| | | |
| | | EndlessBuffData.InitEndlessBuffPool(CurrentLevel); |
| | | |
| | | if (CurrentLevel == startLevel) |
| | | |
| | | WaveManager.InitPort(CurrentLevel); |
| | | |
| | | if (!GameConfig.IsNewbie) |
| | | { |
| | | // buff池的初始化要从正式关卡算起,不算新手关 |
| | | EndlessBuffData.InitEndlessBuffPool(GameConfig.IsNewbieStart ? CurrentLevel - EndlessPortData.NewbieTotalLevel : CurrentLevel); |
| | | ShowSelectBuffUI(); |
| | | } |
| | | else |
| | | { |
| | | EndlessUIStart.instance.Restart(); |