GameOver Menu by Pshaf001



For the game over menu, I made a new canvas and added a Textmesh pro button to it as well as a textmesh pro text. The button said Exit & the text said GameOver. Once I had the game over screen next I had to code it to only appear when it is spotted by the enemy. I did this with the help of Ahmed as he did the majority of the coding for the enemy detection. 


With these two sets of code, we manage to make it display the game over screen.  I also added the Timescale to ensure the player can not keep playing the game even after being spotted. 

Leave a comment

Log in with itch.io to leave a comment.