示例#1
0
 public EnemiesRoom(Enemy_type newMyEnemyType, GameObject newMyEnemy, int difPoints, int newMaxEnemiesOfType = 0)
 {
     myEnemyType       = newMyEnemyType;
     myEnemy           = newMyEnemy;
     mydificultyPoints = difPoints;
     maxEnemiesOfType  = newMaxEnemiesOfType;
 }
示例#2
0
    int NumberEnemiesOfType(Enemy_type type)
    {
        int retNum = 0;

        foreach (EnemiesRoom enemy in _enemiesInRoom)
        {
            if (enemy.myEnemyType == type)
            {
                retNum++;
            }
        }
        return(retNum);
    }