8 lines
142 B
GDScript3
Raw Normal View History

2024-01-15 23:22:14 +00:00
extends Label
func _ready():
%Ping.connect("changed", on_ping_changed)
func on_ping_changed(ping):
text = str(snapped(ping * 1000, 0.01))