extends Control # Declare member variables here. Examples: # var a = 2 # var b = "text" # Called when the node enters the scene tree for the first time. func _on_pause_button_pressed(): get_tree().paused = true $pause_popup.show() func _on_pause_popup_close_pressed(): $pause_popup.hide() if Input.get_mouse_mode() == Input.MOUSE_MODE_VISIBLE: Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED) get_tree().paused = false # Called every frame. 'delta' is the elapsed time since the previous frame. #func _process(delta): # pass