pegchamp/Menu/Pause.gd
2021-09-28 17:55:03 +02:00

9 lines
213 B
GDScript

extends CenterContainer
func _process(delta):
if Input.is_action_just_pressed("pause"):
_on_pause_button_pressed()
func _on_pause_button_pressed():
get_tree().paused = !get_tree().paused
visible = !visible