extends Spatial export (PackedScene) var main = load("res://scenes/main.tscn") func _notification(what): # Back to main scene if what == MainLoop.NOTIFICATION_WM_GO_BACK_REQUEST: var scene = main.instance() call_deferred("add_child", scene)