如何在运行时更改敌人的健康状况?

我创建了以2点生命值开头的敌人“飞行”。如果它被子弹击中,我希望将特定Fly的运行状况更改为1,下次将其更改为0,等等。我知道如何为Fly设置初始运行状况值,但不知道如何在游戏运行时更改它。

我将不胜感激!

GameElements.cs

public static State RunUpdate(ContentManager content, GameWindow window, 
    GameTime gameTime)
{
    background.Update(window);
    player.Update(window, gameTime);

    foreach (Enemy e in enemies.ToList())
    {
        foreach (Bullet b in player.Bullets.ToList())
        {
            if (e.CheckCollision(b))
            {
                e.IsAlive = false;
            }
        }

        if (e.IsAlive)
        {
            if (e.CheckCollision(player))
            {
                player.IsAlive = false;
            }

            e.Update(window);
        }
        else
        {
            enemies.Remove(e);
        }
    }
}

敌人

public abstract class Enemy : PhysicalObject
{
    protected int health;

    public Enemy(Texture2D texture, float X, float Y, float speedX, 
        float speedY, int health) : base(texture, X, Y, 6f, 0.3f)
    {
        // Without this, the health of the Fly is set to 0 I believe. 
        // Is there a more correct way to do it?
        this.health = health; 
    }

    public abstract void Update(GameWindow window);

}

class Fly : Enemy
{
    public Fly(Texture2D texture, float X, float Y) : base(texture, X, Y, 0f, 3f, 2)
    { }

    public override void Update(GameWindow window)
    {
        vector.Y += speed.Y * 7;

        if (vector.X > window.ClientBounds.Width - texture.Width || vector.X < 0)
            speed.X *= -1;

        if (vector.Y > window.ClientBounds.Height - texture.Height || vector.Y < 0)
            speed.Y *= -1;
    }
}