Vore_Sandbox_Remaster/scripts/UI/ExitButton.gd

12 lines
202 B
GDScript

extends Button
class_name ExitButton
# Called when the node enters the scene tree for the first time.
func _ready():
if OS.get_name() == "HTML5":
queue_free()
func _pressed():
get_tree().quit()