8 lines
154 B
GDScript3
Raw Normal View History

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