- Home /
Question by
WitherSS_Studio · Jun 17, 2018 at 12:10 PM ·
unity 5unity5unityeditor
Unity timer
I want to create simple timer that will countdown even if the mobile (android) is off. When timer reaches 0 there will be "SPAWNED" text with random number from 100 - 10000.
Comment
What do you mean with “mobile is off”? You cant run a script when your game is closed.
Use wall clock time. Note the current time and store the time you'd like the message to occur. Store that time as a variable in persistent storage. If the user opens the app and the time exceeds the stored time, show the message. Otherwise $$anonymous$$T369$$anonymous$$T is right.