|
@@ -1,6 +1,9 @@
|
|
|
extends Node2D
|
|
|
|
|
|
|
|
|
+const MENU_FILE: String = "res://run/menu.tscn"
|
|
|
+
|
|
|
+
|
|
|
func _input(event: InputEvent) -> void:
|
|
|
if event.is_action_pressed("ui_cancel"):
|
|
|
- get_tree().change_scene_to_packed(load("res://run/menu.tscn"))
|
|
|
+ get_tree().change_scene_to_file(MENU_FILE)
|