Gradually Change Color from Original to Red with Each Collision

I’m trying to change the color of the player object everytime it collides with an obstacle. I want to make it so that each time it collides, it becomes more red, however, I don’t even know where to start. Here is my current CollisionTracker script.

// Start is called before the first frame update
void Start()
{
    
}

// Update is called once per frame
void Update()
{
    PrintDamage();
}

private void OnCollisionEnter(Collision collision)
{
    if (collision.gameObject.CompareTag("Obstacle"))
    {
        damagePercentage += 1;
        Debug.Log("Collision");
    }
}

public void PrintDamage()
{
    if (damagePercentage <= 100)
    {
        damageText.text = $"Damage: {damagePercentage}%";
    }
}

}

You can use this Unity - Scripting API: Material.SetColor :slight_smile: