Want to add a trigger at a certain score to get to next game

Hi! Totally new to coding
I am making a super simple ping-pong game for a friends birthday. At a certain score I want her to get to the next “page” which gives her 3 numbers she has to use to open a lock etc etc.
I got the score count and everything, working in c# and Visual Studio. But how can I programm the game to end when she scored 10 and open a page with numbers on? Might be quite easy, right?

Thank you so much for your help!!

So you would have something like,

if(gameScore == 10)
{
GameOver();
}

private void GameOver()
{
//open up new scene or UI panel with the next thing you need
}

Oh wow! Ill try that as soon as I get home.

Thank you!

Is there some template for how to make a “game-over-window”?
Sorry, as I said, just started last week with this.

Check it out on Youtube or Google. Just look up: Game Over Screen Unity and a bunch should pop up.

No need to apologize, just get ready to watch a lot of tutorials lol

1 Like