initial add
This commit is contained in:
8
gobbos_delivery/scripts/user_interface/scene_switcher.gd
Normal file
8
gobbos_delivery/scripts/user_interface/scene_switcher.gd
Normal file
@@ -0,0 +1,8 @@
|
||||
extends Node
|
||||
|
||||
@export var new_scene : String
|
||||
|
||||
func transition_scene(goto_scene):
|
||||
new_scene = goto_scene
|
||||
var loadingScreen = load("res://scenes/user_interface/loading_screen.tscn")
|
||||
get_tree().change_scene_to_packed(loadingScreen)
|
||||
Reference in New Issue
Block a user