+1
Answered

Is there any way I can get local time?

Jose Vega 2 years ago updated by Lazlo Bonin (Lead Developer) 2 years ago 1

Hi, Is there any way I can get the System.DateTime.Now in unity? Im building a idle game and im looking for a way to know how long has it been since the last time the player played the game. Thank you

Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
GOOD, I'M SATISFIED
Satisfaction mark by Jose Vega 2 years ago
Answered

Hi Jose,

You should be able to use Date Time: Now by adding Date Time to your custom types in the Unit Options Wizard. More information here: https://ludiq.io/bolt/manual/scripting/custom-types