Hey all. So I am making a 2D adventure game and want something very simple. I have text in the game so when a player enters a trigger it displays text in a black box saying something from a character. I need something so if the player leaves a house or enters a house it will pop up saying “Are you sure?” The player can then click yes or no. Thanks for the help in advance!
Here is a link to a project that I created for you that uses the arrow keys to make a choice on which scene loads (YES and NO)
I am sure there is another way to do this with the new UI but this is a quick and nasty example all scripts included.
http://anthonyk.co.za/unity/choicetest.zip
Make sure your scenes are added in build settings (drag n drop) when you implement to your own project.
Also remember to set the public boolean menuvisible to true when your choice is being displayed or it will not work.
Let us know how it goes!!
accept the answer if it has answered your question in full
Happy coding !!