forked from team-sg/hero-mark-2
fixed bug where pressing pause button when paused
This commit is contained in:
parent
758cf57f8d
commit
809b6510c4
3 changed files with 8 additions and 3 deletions
|
@ -8,8 +8,10 @@ func _ready():
|
|||
func _physics_process(delta):
|
||||
#Resume with pause button
|
||||
if Input.is_action_just_pressed("pause"):
|
||||
get_tree().paused = false
|
||||
queue_free()
|
||||
get_tree().paused = false
|
||||
|
||||
Debug.print(get_tree().paused)
|
||||
|
||||
func _on_Resume_pressed():
|
||||
get_tree().paused = false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue