public EnemyController(EnemySprite enemyTemplate)
        {
            EnemyTemplate = enemyTemplate;
            Enemies       = new List <EnemySprite>();
            Enemies.Add(enemyTemplate);

            timer = MaxTime;
        }
        public void CheckforHits(EnemySprite enemy)
        {
            foreach (Sprite projectile in sprites)
            {
                if (projectile.BoundingBox.Intersects(enemy.BoundingBox))
                {
                    enemy.IsAlive      = false;
                    projectile.IsAlive = false;
                }
            }

            sprites.RemoveAll(p => !p.IsAlive);
        }
        public void Update(GameTime gameTime)
        {
            timer -= gameTime.ElapsedGameTime.TotalSeconds;

            if (timer <= 0)
            {
                EnemySprite enemy = EnemyTemplate.Clone() as EnemySprite;

                Enemies.Add(enemy);
                timer = MaxTime;
            }

            foreach (EnemySprite enemy in Enemies)
            {
                enemy.Update(gameTime);
            }
        }