Is there anyway to shorten this code?

private void Start()
{
experienceStatic = PlayerPrefs.GetInt(“experience”);

    if (playerLevel == 1) 
    {
        PlayerHealth.maxHealth += 1;
    }
    if (playerLevel == 2) 
    {
        PlayerHealth.maxHealth += 2;
    }
    if (playerLevel == 3) 
    {
        PlayerHealth.maxHealth += 3;
    }
    if (playerLevel == 4) 
    {
        PlayerHealth.maxHealth += 4;
    }
    if (playerLevel == 5) 
    {
        PlayerHealth.maxHealth += 5;
    }
    if (playerLevel == 6) 
    {
        PlayerHealth.maxHealth += 6;
    }
    if (playerLevel == 7) 
    {
        PlayerHealth.maxHealth += 7;
    }
    if (playerLevel == 8) 
    {
        PlayerHealth.maxHealth += 8;
    }
    if (playerLevel == 9) 
    {
        PlayerHealth.maxHealth += 9;
    }
    if (playerLevel == 10) 
    {
        PlayerHealth.maxHealth += 10;
    }
}

PlayerHealth.maxHealth += playerLevel;

If you’re adding the same amount of health as the level your character’s at (if at level 6, add 6 HP) You can simplify your code to this:

PlayerHealth.maxHealth += playerLevel

This way no matter which level you’re on it will add that amount of health