godot-vn/menus/options_menu.gd

11 lines
224 B
GDScript

extends Control
var from_scene_name
onready var back_btn = get_node("back_btn")
func _ready():
back_btn.connect("pressed", self, "_on_back_pressed")
func _on_back_pressed():
Game.switch_scene_to(from_scene_name, false)