2024-01-25 12:10:29 +01:00

8 lines
157 B
GDScript

extends DebugLabel
func _ready():
owner.on_ping_changed.connect(on_ping_changed)
func on_ping_changed(ping):
text = str(snapped(ping * 1000, 1)) + " ms"