It's not important, I want to get the time from the internet.
Ber-C
Creator of
Recent community posts
Hello! I'm making a clicker game to android, where the player can earn like 10$/sec, than upgrade it to 15$/sec etc. I want to generate money for the players while the app is not opened. I want to make it server side, or to get the time from the internet when the player closes the app or the app loses focus and when the players re-opens the game, it calculates the time while the app was closed. How can I access a time from internet/server when the app loses focus? Thank you so much for the answers!
Discord: Berci#7340
Hello!
This is my script, I want to save DateTime when I close the android app. It works perfectly on the editor, but on mobile, it doesn't. Why? Thank you!
void OnApplicationQuit()
{
Application.Quit();
//Savee the current system time as a string in the player prefs class
PlayerPrefs.SetString("sysString", System.DateTime.Today.ToBinary().ToString());
print("Saving this date to prefs: " + System.DateTime.Today);
PlayerPrefs.SetInt("LastScore", 0);
}