small death animation and toolbox
This commit is contained in:
@@ -40,12 +40,6 @@ func close() -> void:
|
||||
func _handle_cancel_input() -> void:
|
||||
close()
|
||||
|
||||
func _unhandled_input(event : InputEvent) -> void:
|
||||
return
|
||||
if event.is_action_pressed("ui_cancel"):
|
||||
_handle_cancel_input()
|
||||
get_viewport().set_input_as_handled()
|
||||
|
||||
func _on_close_button_pressed() -> void:
|
||||
close()
|
||||
|
||||
|
||||
@@ -6,8 +6,6 @@ extends Node
|
||||
@export var pause_menu_packed : PackedScene
|
||||
@export var focused_viewport : Viewport
|
||||
@export var player : CharacterBody3D
|
||||
|
||||
@export_group("Inputs")
|
||||
@export var pause:GUIDEAction
|
||||
|
||||
var menu_already_open = false
|
||||
|
||||
Reference in New Issue
Block a user