2018-08-20 09:26:50 +00:00
|
|
|
extends Spatial
|
|
|
|
|
2018-08-21 09:40:29 +00:00
|
|
|
export( NodePath ) var scene_path = ""
|
|
|
|
export( NodePath ) var start_position_path = "start_position"
|
2018-08-20 09:26:50 +00:00
|
|
|
|
|
|
|
func _on_area_body_shape_entered(body_id, body, body_shape, area_shape):
|
2018-08-21 07:01:50 +00:00
|
|
|
if body == character and not scene_path == "":
|
2018-08-21 09:40:29 +00:00
|
|
|
global.change_level( "game", scene_path, null, global.current_map, start_position_path )
|
2018-08-20 09:26:50 +00:00
|
|
|
|
|
|
|
|