Browse Source

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

DricomDragon 2 năm trước cách đây
mục cha
commit
e6c586d30e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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"))