2018-09-21 19:39:08 +01:00
|
|
|
extends Control
|
|
|
|
|
|
|
|
var from_scene_name
|
|
|
|
|
2018-09-22 03:24:32 +01:00
|
|
|
onready var back_btn = get_node("back_btn")
|
|
|
|
|
2018-09-21 19:39:08 +01:00
|
|
|
func _ready():
|
2018-09-22 03:24:32 +01:00
|
|
|
back_btn.connect("pressed", self, "_on_back_pressed")
|
|
|
|
|
|
|
|
func _on_back_pressed():
|
|
|
|
Game.switch_scene_to(from_scene_name, false)
|