Files
Godot-Experements/Core/Components/back_to_main.gd
ArthurErlich 50e6f8b509
All checks were successful
Coding Quality / Build and analyze (pull_request) Successful in 2m10s
chore: restructured project
2026-03-19 21:26:44 +01:00

7 lines
202 B
GDScript

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)