switch
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user