[gd_scene load_steps=5 format=2]

[ext_resource path="res://scenes/coin_machine.tscn" type="PackedScene" id=1]
[ext_resource path="res://scenes/item_holder.tscn" type="PackedScene" id=2]
[ext_resource path="res://scripts/item_generator.gd" type="Script" id=3]

[sub_resource type="CylinderMesh" id=1]

[node name="item_generator" type="Spatial"]
script = ExtResource( 3 )

[node name="MeshInstance" type="MeshInstance" parent="."]
mesh = SubResource( 1 )

[node name="progress_text" type="Label3D" parent="MeshInstance"]
unique_name_in_owner = true
transform = Transform( 2, 0, 0, 0, 2, 0, 0, 0, 2, 0, 2.11515, -0.712185 )
modulate = Color( 0, 0, 0, 1 )
text = "Progress: 20%"

[node name="item_slot_1" parent="." groups=["conveyor_item_slots"] instance=ExtResource( 2 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 2.5, 0, 0 )

[node name="item_slot_2" parent="." groups=["conveyor_item_slots"] instance=ExtResource( 2 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 5, 0, 0 )

[node name="coin_machine" parent="." instance=ExtResource( 1 )]
unique_name_in_owner = true

[node name="gen_timer" type="Timer" parent="."]
unique_name_in_owner = true
one_shot = true

[connection signal="coin_requirement_met" from="coin_machine" to="." method="_on_coin_machine_coin_requirement_met"]
[connection signal="timeout" from="gen_timer" to="." method="_on_gen_timer_timeout"]
