quit_button.gd 116 B

1234567
  1. extends Button
  2. func _on_pressed():
  3. get_tree().quit()
  4. func _ready():
  5. Input.mouse_mode = Input.MOUSE_MODE_VISIBLE