trop de chose jpp

This commit is contained in:
2025-01-18 10:43:11 +01:00
parent 913a455d33
commit 309496c900
19 changed files with 546 additions and 21 deletions

12
script/menu.gd Normal file
View File

@@ -0,0 +1,12 @@
extends Node3D
@export var next_scene: PackedScene = null
var scene_manager: Node = null
func _ready() -> void:
scene_manager = get_tree().root.get_node("scene_manager")
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(_delta: float) -> void:
if(Input.is_action_just_pressed("enter")):
scene_manager.emit_signal("change_scene_signal", next_scene)