I have been struggling with this fairly basic issue: To make a game over menu appear upon death.
I am making a 3D game in Unity, where you, the player, must control a sphere with the basic controls: W, A, S, D and ↑, ↓, ←, →. It is a game where you must "drive" the ball and pass a broad variety of obstacles, where you must lead the ball to fall into a confined box where, if within it, you ultimately win the game.
I have already implemented the Main Menu, Pause Menu and the fundamental gameplay components. I just need to figure out how to make it so the player can actually lose the game. The most important aspect of a game.
I have not a clue on how I can make this.
The player is on a platform, as are the obstacles etc. I have made in my game 2 bridges you must cross over, on which below it is nothing. So, if you slide off a bridge, you will basically die, as there is nowhere else to go upon falling. I want to make it so that when you fall from the actual platform, or the map, falling into the "abyss", you will die, on which I would like a game over screen to appear, there being a play again button, and a button that will quit the game.
I basically have no clue how to make any of this a reality. If possible, I would be delighted if anyone could develop a script for this. Java Script or C#, doesn't matter. If you can assist me in anyway, please do.