small death animation and toolbox
This commit is contained in:
10
menus/scenes/overlaid_menus/toolbox.gd
Normal file
10
menus/scenes/overlaid_menus/toolbox.gd
Normal file
@@ -0,0 +1,10 @@
|
||||
@tool
|
||||
@icon("res://assets/ui/IconGodotNode/control/icon_gear_2.png")
|
||||
class_name Toolbox
|
||||
extends OverlaidMenu
|
||||
|
||||
@export var player: PlayerController
|
||||
|
||||
func _on_kill_player_button_pressed() -> void:
|
||||
get_tree().create_timer(1).timeout.connect(player.Kill)
|
||||
close()
|
||||
Reference in New Issue
Block a user