extends Node3D @export var buttons : Array[Area3D] # 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): var sum = 0 for button in buttons: if button.children != 0: sum += 1 if sum == buttons.size(): $objective_dead.position = Vector3(10000, 0, 0) $objective.position = Vector3(0, 0, 0) else: $objective_dead.position = Vector3(0, 0, 0) $objective.position = Vector3(10000, 0, 0)