My player health runs out too fast. Please help,Hi.My player health runs out too fast. It runs out at a really rapid rate. Can anyone help?

public class GameController : MonoBehaviour
{

public static GameController instance;

private static int health = 6;
private static int maxHealth = 6;
private static float moveSpeed = 5f;
private static float fireRate = 0.5f;


public static int Health { get => health; set => health = value; }
public static int MaxHealth { get => maxHealth; set => maxHealth = value; }
public static float MoveSpeed{ get => moveSpeed; set => moveSpeed = value; }
public static float FireRate { get => fireRate; set => fireRate = value; }

public Text healthText;

// Start is called before the first frame update
private void Awake()
{
    if(instance == null)
    {
        instance = this;
    }
}

// Update is called once per frame
void Update()
{
    healthText.text = "Health: " + health;
}

public static void DamagePlayer(int damage)
{
    health -= damage;

    if(Health <= 0)
    {
        KillPlayer();
    }

}

public static void HealPlayer(int healAmount)
{
    health = Mathf.Min(maxHealth, health + healAmount);
}
private static void KillPlayer()
{

}

}

Well, you could always increase the initial and max health number and or change the amount of damage dealt.

You can set a damageRate like the fireRate if you use an enemy to damage the player through colliders, so the player health will only be decreased per 0.5 second. I hope this will fix the problem.