diff --git a/scenes/pribor-uf/pribor_uf.gd b/scenes/pribor-uf/pribor_uf.gd new file mode 100644 index 00000000..e1d30efa --- /dev/null +++ b/scenes/pribor-uf/pribor_uf.gd @@ -0,0 +1,14 @@ +extends "res://scenes/контроль/прибор.gd" + +# Called when the node enters the scene tree for the first time. +func _ready() -> void: + var unit_key = settings.get_unit_key('уарэп-эмс') + var unit_uf = network.units[unit_key] + unit_uf.connect('data_received', on_data_received.bind(unit_uf)) + +func on_data_received(data, unit_uf): + print_debug(data) + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta: float) -> void: + pass