reversed tubes on the hub, other hub world tweaks
This commit is contained in:
@@ -8,7 +8,7 @@ var timer_active = false
|
||||
var active = true
|
||||
var index : int
|
||||
|
||||
const SCENE_SPAWN_OFFSET = Vector3(0,-150,0)
|
||||
const SCENE_SPAWN_OFFSET = Vector3(0,400,0)
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
@@ -25,10 +25,7 @@ func _on_body_entered(body: Node3D) -> void:
|
||||
if active and timer_active:
|
||||
active = false
|
||||
var scene = load(level_info["level_path"]).instantiate()
|
||||
|
||||
if scene.sky_type != null:
|
||||
SignalBus.emit_signal("update_sky",scene.sky_type)
|
||||
|
||||
|
||||
get_tree().current_scene.add_child(scene)
|
||||
scene.global_position = global_position + SCENE_SPAWN_OFFSET
|
||||
|
||||
|
||||
Reference in New Issue
Block a user