Created
May 18, 2021 09:03
-
-
Save andrew-wilkes/a1e3845df7b4af66566f272e974073d4 to your computer and use it in GitHub Desktop.
Global code to quit Godot game
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func _input(_event): | |
if Input.is_action_just_pressed("ui_cancel"): | |
get_tree().quit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment