This commit is contained in:
Overside srl
2026-02-01 09:53:24 +01:00
parent 8222c7613d
commit 40cadd2f73
21 changed files with 300 additions and 98 deletions

14
scripts/rail_swtich.gd Normal file
View File

@@ -0,0 +1,14 @@
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