diary/system/time/time_singleton.gd

9 lines
161 B
GDScript3
Raw Normal View History

extends Node
2022-06-05 14:22:08 +02:00
var offset: int = 0 # This is for debug purposes. (Doing sudden time jumps)
func get_current_time() -> int:
return OS.get_unix_time() + offset