public EnemiesRoom(Enemy_type newMyEnemyType, GameObject newMyEnemy, int difPoints, int newMaxEnemiesOfType = 0) { myEnemyType = newMyEnemyType; myEnemy = newMyEnemy; mydificultyPoints = difPoints; maxEnemiesOfType = newMaxEnemiesOfType; }
int NumberEnemiesOfType(Enemy_type type) { int retNum = 0; foreach (EnemiesRoom enemy in _enemiesInRoom) { if (enemy.myEnemyType == type) { retNum++; } } return(retNum); }