Giving 2D object a red tint

How do I give my object a red tint through script

If it’s a sprite, google how to tint sprite.

If it’s a mesh it has a material, find it and tint it