extends Node @export var num_analyzers = 1 @export var analysis_value = 10 @export var active = false @onready var analyzer_timer = $"../AnalyzerTimer" signal al1_analyze(value) # Called when the node enters the scene tree for the first time. func _ready(): pass # Replace with function body. # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(delta): pass func add_analyzer(): num_analyzers += 1 if not active: start_analyzing() func start_analyzing(): if not active: active = true analyzer_timer.start() func _on_analyzer_timer_timeout(): if active: print("Emitted analysis.") al1_analyze.emit(analysis_value * num_analyzers) analyzer_timer.start()