Can anyone explain how to create an underwater breath meter so it will go down when underwater and back up when out of water, and player died if it reaches 0 underwater?

Create a branch health <= 0, then on true execute your death scene or game over screen