Unity 2d Player Shines like an extinct

I want my player to shine like in an ignition and extinction loop for the light that it emits and when it touches certain materials with a different light, it should shine that color