- Home /
Pop up Window without button click
Hello, I need to create a pop-up window without clicking a button. It should be created automatically when gameover is triggered. But I dont know how to create it without any button click event.
Does anyone know how to do that? Thanks.
Answer by Kiwasi · Jul 02, 2014 at 07:53 PM
This works exactly the same way as creating a window normally. However instead of
if(button)
use
if(gameOver)
Check out the link here
error CS0103: The name `gameOver' does not exist in the current context
Of course gameOver does not exist, you copied and pasted my code without understanding what I was talking about. I assume since you replied so fast that you didn't follow the link either, that should have kept you occupied for a couple of days.
You need to define a bool that is set true when the game is over, then check that bool.
xD .. I "lol'd" .. I was being sarcastic, attempting to predict the next problem the OP would have.
Lol. :P
You got me good. Didn't actually check who was posting the comment. Assumed it was the OP.
That's really brightened my day.
Your answer
Follow this Question
Related Questions
Show dialog 0 Answers
Best way to make a Quiz system? 0 Answers
Pop up window 0 Answers
Pop-up Window 1 Answer
Can Unity Open a second game window? 0 Answers