project_teddy/scripts/sceneChangerConfirm.gd

19 lines
255 B
GDScript

extends Control
func _ready():
pass
func _process(delta):
pass
func _on_yes_button_pressed():
Global.playingGame = false
Global.menuOpen = false
get_tree().change_scene_to_file(Global.goScene)
func _on_no_button_pressed():
self.queue_free()