public void FilterEnemies(MainTagEnemy mainTag) { List <MainTagEnemy> mainTags = new List <MainTagEnemy>(); mainTags.Add(mainTag); FilterEnemies(mainTags); }
public List <EnemyData> getEnemiesWithMainTag(MainTagEnemy chosenTag, List <EnemyData> enemiesList) { List <EnemyData> enemiesWithTag = new List <EnemyData>(); foreach (EnemyData enemy in enemiesList) { if (enemy.mainTag == chosenTag) { enemiesWithTag.Add(enemy); } } return(enemiesWithTag); }