New score each level

Hey guys,

I am making a 2D platform game. When the player scores 100 they go to the next level.
When I get to the next level it ends straight away and goes to the win screen.
This is because the score is 100 as soon as you start the new level.

I do not know how to fix it. Could anyone help me please?

Thanks.

Use a static field.

If you don’t know what a static field is, google “C# static field” and read.