- Home /
Device Independent Date Time
Hello, I am making a mobile game that allows the player to play offline, and in the game there is a free gift system where player gets a free gift from time to time. So I need to know how many seconds has passed since the player gets a free gift for the system. And I understand that using DateTime.Now would just get the device time so that the player can cheat by setting the device time. Is there anyway to get a device independent time without getting online?
Thanks
Answer by NoseKills · May 13, 2015 at 03:54 PM
No way to do that. Even the AAA match 3 games are subject to this cheat.
Crossy Road seems able to do it. I force quit the game, switch on flight mode, set time become 1 hour later, back to the game and the free gift time still the same!
Answer by Thewhiteaura · Jun 01, 2015 at 01:07 PM
if you can figure out how to work one, you could possibly use OnTick, the tick timer. I'm still wrangling with mine however, its most likely possible to still cheat this but at least it doesn't rely on DateTime (I'm not sure if it would work with the device truly off however so that is another thing you would have to think about)
Your answer
Follow this Question
Related Questions
Collider Button don t work on Mobile Device 0 Answers
Problem with CrossPlaformInputManager.GetButton () 1 Answer
OnPointerDown and OnPointerUp doesn't work 6 Answers
When I enable certain scripts on my player, the transform falls through the map. 0 Answers
how d you change PlatformEffector2D rotationaloffset change as prefabs in android? 0 Answers