Gameover menu
This commit is contained in:
parent
175bd597c5
commit
b26c4a4be0
7 changed files with 80 additions and 1 deletions
|
@ -19,5 +19,6 @@ func _on_QuitButton_pressed():
|
|||
get_tree().quit()
|
||||
|
||||
func _process(_delta):
|
||||
if Input.is_action_just_pressed("pause"):
|
||||
var PlayerIsAlive = get_tree().get_nodes_in_group("Player").size() > 0
|
||||
if Input.is_action_just_pressed("pause") and PlayerIsAlive:
|
||||
self.paused = !paused
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue