Exemple #1
0
    public void SetUp()
    {
        GameManager.gameManager.PoolManager.GenerateEnemyShipsPoolDisctionary(GetAllUsedEnemiesTags);

        /*string newString = "";
         * foreach (EnemyShipPoolTag tg in GetAllUsedEnemiesTags)
         *  newString += tg + ", ";
         * GameManager.gameManager.ShowDebugText(newString);*/

        wavesWaitingToBeLaunched = new List <EnemyWave>();
        wavesToRemoveFromWait    = new List <EnemyWave>();

        enemySpawingDropParameters.SetUp();

        foreach (EnemyWave wave in allWaves)
        {
            wave.SetUp(this);
        }

        ArenaManager arenaManager = ArenaManager.arenaManager;

        if (arenaManager != null)
        {
            arenaManager.ChoseNextTimeToCheck();
            arenaManager.ChoseNextKillsToCheck();
        }
    }