input fix
This commit is contained in:
parent
4982fc55bf
commit
05deff5860
2 changed files with 2 additions and 1 deletions
|
@ -22,4 +22,5 @@ func level_state(value: bool) -> void:
|
|||
|
||||
|
||||
func _on_pressed():
|
||||
|
||||
level_selected.emit(level_num)
|
||||
|
|
|
@ -16,7 +16,7 @@ func connect_level_selected_to_level_box():
|
|||
|
||||
func change_to_scene(level_num: int):
|
||||
var next_level: String = "res://levels/level_" + str(level_num) + ".tscn"
|
||||
if FileAccess.file_exists(next_level): get_tree().change_scene_to_file(next_level)
|
||||
get_tree().change_scene_to_file(next_level)
|
||||
|
||||
|
||||
func _on_quit_button_pressed():
|
||||
|
|
Loading…
Add table
Reference in a new issue