Ver código fonte

:tada: Cancel action in a level brings back to menu

DricomDragon 2 anos atrás
pai
commit
e6c586d30e
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      godot/component/entity/level/Level.gd

+ 1 - 1
godot/component/entity/level/Level.gd

@@ -3,4 +3,4 @@ extends Node2D
 
 func _input(event: InputEvent) -> void:
 	if event.is_action_pressed("ui_cancel"):
-		print("Get out !")
+		get_tree().change_scene_to_packed(load("res://run/menu.tscn"))