8 lines
157 B
GDScript3
Raw Normal View History

2024-01-18 22:35:17 +00:00
extends DebugLabel
2024-01-15 23:22:14 +00:00
func _ready():
2024-01-25 11:10:29 +00:00
owner.on_ping_changed.connect(on_ping_changed)
2024-01-15 23:22:14 +00:00
func on_ping_changed(ping):
2024-01-23 23:09:50 +00:00
text = str(snapped(ping * 1000, 1)) + " ms"