add sky to train scene

This commit is contained in:
Overside srl
2026-02-17 10:03:32 +01:00
parent fd0bcfa381
commit b419cbe6f5
10 changed files with 89 additions and 13 deletions

View File

@@ -51,6 +51,11 @@ 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("toggle_debug"):
var sky := get_node_or_null("DynamicSky") as DynamicSkyRoot
if sky and sky._debug_canvas_layer:
sky._debug_canvas_layer.visible = not sky._debug_canvas_layer.visible
func _update_ui() -> void: