Example #1
0
    private void EndOneWave()
    {
        alreadyStart = false;
        //关卡奖励
        moneyManager.AddCash(100);
        waveEndPanel.Play();
        waveEndText.text = "Wave" + waveIndex;

        //没有关卡则退出
        if (!monsterSpawner.HasWave())
        {
            StartCoroutine(EndAllWaves());
            return;
        }


        waveIndex++;
        StartCoroutine(StartOneWaveAfterSeconds());
    }