Пример #1
0
    private List <int> enemyIds(int level)
    {
        List <int> ids          = new List <int>();
        int        monsterCount = Random.Range(1, 5);

        for (int j = 0; j < monsterCount; j++)
        {
            ids.Add(ed.returnEnemyIdByLevel(player.level));
            tempIds.Add(ids[j]);
        }
        return(ids);
    }