- Home /
how to setting highscore with second in unity 2d? (C#)
im a beginner. i want to setting highscore with second in 2d, like how long you can survive. but i get confused for scripting, maybe you can help me. thank you
Comment
Answer by koray1396 · Mar 18, 2014 at 02:08 PM
you need the following, - a deltaTime counter, that will increase by deltaTime in every update. - a GUIText to display the counter (you may round as well) - an event of endgame, then you will stop the counter and store the score in playerprefs.
i guess you need to do some research, i will not be able to provide the code.