[gd_scene load_steps=7 format=2]

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

[sub_resource type="SpatialMaterial" id=1]
albedo_color = Color( 0, 0, 0, 1 )

[sub_resource type="CylinderMesh" id=2]
material = SubResource( 1 )
top_radius = 0.5
bottom_radius = 0.5
height = 0.1
radial_segments = 9

[sub_resource type="CubeMesh" id=3]
size = Vector3( 1.362, 0.49, 0.081 )

[node name="oven" type="Spatial"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0063355, 0.00319374, -0.00456095 )
script = ExtResource( 2 )

[node name="CSGBox" type="CSGBox" parent="."]
use_collision = true
width = 1.36825
height = 1.04121
depth = 1.24388

[node name="CSGBox2" type="CSGBox" parent="CSGBox"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.000755012, -0.038668, 0.154754 )
operation = 2
width = 1.20449
height = 0.784214
depth = 1.29741

[node name="coil" type="MeshInstance" parent="CSGBox"]
unique_name_in_owner = true
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.00424552, 0.556925, -0.00761187 )
mesh = SubResource( 2 )
skeleton = NodePath("../..")

[node name="item_holder" parent="CSGBox/coil" instance=ExtResource( 1 )]
unique_name_in_owner = true
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00424552, 0.29638, 0.00761187 )

[node name="backsplash" type="MeshInstance" parent="CSGBox"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.00424552, 0.556925, -0.575066 )
mesh = SubResource( 3 )
skeleton = NodePath("../..")

[node name="coin_machine" parent="." instance=ExtResource( 3 )]

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

[connection signal="item_changed" from="CSGBox/coil/item_holder" to="." method="_on_item_holder_item_changed"]
[connection signal="coin_requirement_met" from="coin_machine" to="." method="_on_coin_machine_coin_requirement_met"]
[connection signal="timeout" from="cook_timer" to="." method="_on_cook_timer_timeout"]
