Example #1
0
    public void Start()
    {
        for (int i = 0; i < enemyDifficultyEntries.Count; i++)
        {
            PoolingManager.AddPrefabToPooling(enemyDifficultyEntries[i].prefab);
            spawnEvents.Add(new SingleSpawn(enemyDifficultyEntries[i]));
        }

        for (int i = 0; i < enemyDifficultyEntries.Count; i++)
        {
            spawnEvents.Add(new CircleSpawn(enemyDifficultyEntries[i], 0.5f, 4));
        }

        for (int i = 0; i < enemyDifficultyEntries.Count; i++)
        {
            spawnEvents.Add(new CircleSpawn(enemyDifficultyEntries[i], 0.8f, 6, 4f));
        }

        for (int i = 0; i < enemyDifficultyEntries.Count; i++)
        {
            spawnEvents.Add(new CircleSpawn(enemyDifficultyEntries[i], 1, 8, 8f));
        }
    }