Drowning Script help

Hi guys, I was wondering if anyone can please help me out with a script that triggers a component at a certain depth. Basically i’m trying to do a drowning script. I already have the swimming script but that triggers with the collider of the player but i can’t do the same because i can’t add a collider to the camera. Basically i want the breath meter to trigger at a certain y axis height but i can’t figure out how to do this. can some please help me with how i should declare the value and how to start this script? I can do the rest but i just don’t know how to do the y axis portion.

I will use 2 separate script. 1 for swimming (done) and 1 for holding the breath. once both re complete i’ll try to put them together.

damn no1 has any idea how to help with this?