|
@@ -1,4 +1,6 @@
|
|
|
-[gd_scene load_steps=6 format=3 uid="uid://ba3gf7iy3mxbq"]
|
|
|
+[gd_scene load_steps=7 format=3 uid="uid://ba3gf7iy3mxbq"]
|
|
|
+
|
|
|
+[ext_resource type="Script" path="res://component/entity/collectibles/chocolate/chocolate.gd" id="1_wk24q"]
|
|
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_cro6x"]
|
|
|
size = Vector3(1, 1, 0.325)
|
|
@@ -20,6 +22,9 @@ material = SubResource("StandardMaterial3D_ds5yo")
|
|
|
size = Vector3(0.85, 0.8, 0.25)
|
|
|
|
|
|
[node name="ChocolateTablet" type="Area3D"]
|
|
|
+collision_layer = 32
|
|
|
+collision_mask = 10
|
|
|
+script = ExtResource("1_wk24q")
|
|
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
|
|
shape = SubResource("BoxShape3D_cro6x")
|
|
@@ -30,3 +35,5 @@ mesh = SubResource("BoxMesh_c10ab")
|
|
|
[node name="PaperMesh" type="MeshInstance3D" parent="."]
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.119209, 0)
|
|
|
mesh = SubResource("BoxMesh_ialpe")
|
|
|
+
|
|
|
+[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|