private void InstantiateEnemies() { for (int i = 0; i < numEnemies; i++) { BirdEnemy birdEnemy = Instantiate <BirdEnemy>(birdPrefab); birdEnemy.transform.SetParent(enemyContainer, false); enemies.Add(birdEnemy); } }
//TODO: Eneemy type parameter if we ever have more enemies public void AddEnemies(int count) { for (int i = 0; i < count; i++) { BirdEnemy birdEnemy = Instantiate <BirdEnemy>(birdPrefab); birdEnemy.transform.SetParent(enemyContainer, false); enemies.Add(birdEnemy); } numEnemies = enemies.Count; PlaceEnemies(); }