private int x, y; //starting coordinates of each enemy public EnemySpawner(string enemyType, int min, int max, double spawnRate) { this.enemyType = enemyType; this.spawnRate = spawnRate; System.Random rand = new System.Random(); enemyCount = rand.next(min, max); }