How to end the game

How do you trigger the end of the game when you leave a certain area. Because once you leave the area in the level on my game, that is the end. How can you do this? Any help is appreciated.

Use a trigger to detect :

Use a LoadLevel to change to the end scene: