how would i make it so that when i pressed lets say ‘P’ it pauses the game and a button pop up saying exit and obviously when you hit exit it exits the the menu and when you hit ‘P’ again the menu disappears if anybody could help me it would be a big massive help,
I have try this code below but all it does is exit the game an start
Alright when you press “P” you should have the button appear, not the Application.LoadLevel stuff because that loads the level when you press “P”. When you press “P” you should set the timescale to 0 and instantiate a button. On the button you should have a script with a OnMouseDown function and have that have the Application load stuff. If you have any questions just ask I’ll be happy to help.