8 lines
154 B
GDScript
8 lines
154 B
GDScript
extends DebugLabel
|
|
|
|
func _ready():
|
|
%Ping.connect("changed", on_ping_changed)
|
|
|
|
func on_ping_changed(ping):
|
|
text = str(snapped(ping * 1000, 0.1)) + " ms"
|