10 lines
299 B
GDScript
10 lines
299 B
GDScript
extends Button
|
|
|
|
export( String ) var scene_path = null
|
|
export( String ) var start_position_path = "start_position"
|
|
|
|
|
|
|
|
func _on_select_scene_button_pressed():
|
|
if scene_path and not scene_path == "":
|
|
global.change_level( "game", scene_path, null, global.current_map, start_position_path )
|