added an assassinate target modifier
This commit is contained in:
@@ -19,8 +19,14 @@ func _on_body_entered(body: Node3D) -> void:
|
||||
timer.start(1)
|
||||
var scene = load(level_info["level_path"]).instantiate()
|
||||
scene_holder.add_child(scene)
|
||||
scene.global_position = global_position + SCENE_SPAWN_OFFSET
|
||||
var spawn_tube_offset_pos = Vector3.ZERO
|
||||
|
||||
if scene.tube_top != null:
|
||||
spawn_tube_offset_pos = scene.tube_top.position
|
||||
|
||||
scene.global_position = global_position + SCENE_SPAWN_OFFSET + spawn_tube_offset_pos
|
||||
|
||||
|
||||
var level_control = get_tree().current_scene
|
||||
level_control.spawn_crown()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user