Turning off a spotlight inside the character on collision with Box Collider

How would you turn off a flashlight if a character touches a box collider? I’ve been doing my best to figure it out, but just can’t.