| | |
| | | /// <param name="level"></param> |
| | | public void InitPort(int level) |
| | | { |
| | | EndlessPortData.InitPortList(); |
| | | EndlessBuffData.InitEndlessBuffPool(level); |
| | | InitPortData(level); |
| | | InitWaveData(); |
| | | RefreshBoss(); |
| | |
| | | private void OnEndlessBossSummonEnd() |
| | | { |
| | | EventCenter.Ins.Remove((int)KTGMGemClient.EventType.EndlessBossSummonEnd, OnEndlessBossSummonEnd); |
| | | EndlessBossCtrl.instance.ChangeState(EndlessBossActionState.Standing); |
| | | HideTunel(); |
| | | RefreshFaZhen(); |
| | | } |
| | |
| | | |
| | | public void Update() |
| | | { |
| | | if (EndlessGameUI.instance.state == EndlessGameUI.State.GameOver) return; |
| | | |
| | | if (faZhenRefreshTimer != null) |
| | | { |
| | | if (faZhenRefreshTimer.Tick(Time.deltaTime)) |
| | | faZhenRefreshTimer = null; |
| | | } |
| | | |
| | | if (!isWaveStarted) return; |
| | | if (!isWaveStarted || EndlessGameUI.instance.state == EndlessGameUI.State.GameOver) return; |
| | | |
| | | // 所有赛道都完成 |
| | | if (CompletedWaveLine >= TotalWaveLines) |