trop de chose jpp
This commit is contained in:
12
script/menu.gd
Normal file
12
script/menu.gd
Normal 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)
|
||||
Reference in New Issue
Block a user