- Home /
restart game and load a very new scene...
Hello. I have a simple question. I am making a game and I want if the player restart the game, the game will load a very new scene....right now when i restart the game...it will load the scene but the time is still like before it restart...anyone can help...
when i play the game...then i want to quit...so i go to main menu...then load back the play scene...the problem is...the time is not stop...ex; i go to the main menu at 1 $$anonymous$$ute after the game start...then i load back the same scene...and the time is continuos from previous....
Answer by syclamoth · Mar 13, 2012 at 08:13 AM
This, basically, is the problem with using Time.time for your timers. You should instead use either Time.timeSinceLevelLoad, or offset your timers by some value when they get started (and then subtract that value from Time.time to get the actual value).
Answer by Meltdown · Mar 13, 2012 at 08:06 AM
You can use Application.LoadLevel to load a new scene.
i already use it...but the time still continuos from previous time...
What 'time'? What are you using time for? Can you send example where you use time? Once a scene is loaded all time is reset.
Your answer
Follow this Question
Related Questions
Restarting at the beginning 0 Answers
i need to know how to make a menu 0 Answers
App restarts Android device on launch 1 Answer