10 lines
342 B
GDScript
10 lines
342 B
GDScript
extends Spatial
|
|
|
|
export( NodePath ) var scene_path = ""
|
|
export( NodePath ) var start_position_path = "start_position"
|
|
|
|
func _on_area_body_shape_entered(body_id, body, body_shape, area_shape):
|
|
if body == character and not scene_path == "":
|
|
global.change_level( "game", scene_path, null, global.current_map, start_position_path )
|
|
|
|
|