extends Area3D

@export var rail_a: Path3D
@export var rail_b: Path3D
@export var switch_to_rail: Path3D  # Il binario verso cui deviare


# Cambia direzione dello scambio
func toggle_switch() -> void:
	if switch_to_rail == rail_a:
		switch_to_rail = rail_b
	else:
		switch_to_rail = rail_a

		
#func get_state_name() -> String:
	#return "BIANRIO 1" if current_state == SwitchState.LEFT else "BINARIO 2"
