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

View File

@@ -3,9 +3,9 @@ extends Node3D
@onready var speed_label : Label = $HUD/speed_label
@onready var camera_label : Label = $HUD/camera_label
@onready var train: MeshInstance3D = $Ground/Rails/TrainEngine/Train
@onready var train: MeshInstance3D = $Ground/Train
@onready var camera: TrainControlCamera = $TrainCamera
func _process(_delta: float) -> void:
_update_ui()
@@ -13,6 +13,8 @@ func _process(_delta: float) -> void:
if Input.is_action_just_pressed("ui_cancel"):
SceneSwitcher.switch_scene(main_scene.resource_path)
if Input.is_action_just_pressed("change_train"):
SceneSwitcher.switch_scene(main_scene.resource_path)
func _update_ui() -> void: