feat: added back to main menue
This commit is contained in:
6
back_to_main.gd
Normal file
6
back_to_main.gd
Normal file
@@ -0,0 +1,6 @@
|
||||
extends Node
|
||||
var main_menue: PackedScene = preload("res://main.tscn")
|
||||
|
||||
func _input(event: InputEvent) -> void:
|
||||
if event.is_action_pressed("main_menue"):
|
||||
get_tree().change_scene_to_packed(main_menue)
|
||||
Reference in New Issue
Block a user