added a max velocity for player and fixed the multiple back inputs in menus
This commit is contained in:
@@ -5,7 +5,6 @@ extends OverlaidMenu
|
||||
@export_file("*.tscn") var main_menu_scene : String
|
||||
|
||||
var popup_open : Node
|
||||
|
||||
var is_listening_to_inputs = true
|
||||
|
||||
func close_popup() -> void:
|
||||
|
||||
@@ -13,10 +13,4 @@ extends OverlaidMenu
|
||||
var _instance = menu_scene.instantiate()
|
||||
%MenuContainer.add_child(_instance)
|
||||
|
||||
func blocking_close() -> void:
|
||||
get_viewport().set_input_as_handled()
|
||||
super.close()
|
||||
|
||||
func _ready() -> void:
|
||||
back_action.triggered.connect(blocking_close)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user