Exemple #1
0
    //TODO modify the creation of a enemy wave and the object enemy wave itself
    public EnemyWave GenerateNewWave(int windowSize)
    {     //Here a new wave is created then will be passed to enemy manager by enemy wave manager
        currentWave++;
        Debug.Log("New Wave: " + currentWave);
        if (!tutorialEnded && currentWave == 3)
        {
            currentWave   = 1;
            tutorialEnded = true;
            TutorialEndEvent(false);
        }
        wave = new EnemyWave(NewNumberEnemies());
        //wave.enemySpeed = enemySpeed;
        PopulateEnemyTypes();

        wave.GenerateNewWave(windowSize);
        return(wave);
    }