i am making a endless jumper (2d)
i have the score count based on how long you survive,
and i have a death trigger on the bottom of my “Main camera”
when the player collides with it i am loading the so called “death menu” where i have the options play again and main menu, and also a text that says highscore.
basically i want to save my current score when colliding with death trigger and set that to the highscore text in my other scene (death menu), and if i beat it on my next attempt i want it to change, and if i don’t, i want it to stay the same, so basically a standard, saving and displaying Highscore function.
i am using c# and i really don’t have a clue how to write it.