Exemple #1
0
    public void FilterEnemies(MainTagEnemy mainTag)
    {
        List <MainTagEnemy> mainTags = new List <MainTagEnemy>();

        mainTags.Add(mainTag);
        FilterEnemies(mainTags);
    }
Exemple #2
0
    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);
    }