Beispiel #1
0
        private void Spawn()
        {
            var currentArchetype = archetypes[waveSettings.CurrentWave];

            for (int i = 0; i < waveSettings.EnemiesPerSpawn; i++)
            {
                var enemy = enemyFactory.CreateFromArchetype(currentArchetype);
                enemy.transform.position = waveSettings.SpawnPosition;
                enemy.SetActive(true);
            }
        }