chests are saved to playlist

This commit is contained in:
derek
2025-03-27 17:03:08 -05:00
parent 91f58c4dfc
commit 97bb2c9852
8 changed files with 45 additions and 56 deletions

View File

@@ -93,7 +93,7 @@ func _ready():
var chest_loc = chest_spawners.pick_random()
var instance_chest = CHEST_1.instantiate()
print("SPAWNING CHEST AT : ",chest_loc.name)
get_tree().current_scene.add_child(instance_chest)
add_child(instance_chest)
instance_chest.basis = chest_loc.basis
instance_chest.global_position = chest_loc.global_position
instance_chest.global_rotation = chest_loc.global_rotation