Game Over when character enters in lighted area

Hello! I want to make game like a prison break. how can i make game over screen when my character enters in lighted area. i have spotlight which moves randomly so when character come in light i want to receive game over screen.

thanks in advance!

Hey there,
I’d recommend adding a collider to your spotlight, and check it as a trigger.
Then, add an “OnTriggerEnter” event to your player, and inside this method, check if the collider is the one attached to your spotlight.
Good luck!