72 lines
2.9 KiB
Text
72 lines
2.9 KiB
Text
[gd_scene load_steps=4 format=3 uid="uid://4mhcwvn365ki"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/computer.gd" id="1_bnoot"]
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_bvobj"]
|
|
size = Vector3(2, 1.75, 1.5)
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_nfndi"]
|
|
|
|
[node name="computers" type="StaticBody3D"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
|
|
script = ExtResource("1_bnoot")
|
|
|
|
[node name="collision" type="CollisionShape3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.375, 0)
|
|
shape = SubResource("BoxShape3D_bvobj")
|
|
|
|
[node name="desk" type="CSGBox3D" parent="."]
|
|
size = Vector3(2, 1, 1.5)
|
|
|
|
[node name="pc_1" type="CSGBox3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.875, 0.5)
|
|
size = Vector3(1, 0.75, 0.25)
|
|
|
|
[node name="pc_1_area" type="Area3D" parent="pc_1"]
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="pc_1/pc_1_area"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.75, 0.875)
|
|
shape = SubResource("BoxShape3D_nfndi")
|
|
|
|
[node name="Label3D" type="Label3D" parent="pc_1"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.13)
|
|
text = "0"
|
|
|
|
[node name="pc_2" type="CSGBox3D" parent="."]
|
|
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0.75, 0.875, 0)
|
|
size = Vector3(1, 0.75, 0.25)
|
|
|
|
[node name="pc_2_area" type="Area3D" parent="pc_2"]
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="pc_2/pc_2_area"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.75, 0.875)
|
|
shape = SubResource("BoxShape3D_nfndi")
|
|
|
|
[node name="Label3D" type="Label3D" parent="pc_2"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.13)
|
|
text = "0"
|
|
|
|
[node name="pc_3" type="CSGBox3D" parent="."]
|
|
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, -0.75, 0.875, 0)
|
|
size = Vector3(1, 0.75, 0.25)
|
|
|
|
[node name="pc_3_area" type="Area3D" parent="pc_3"]
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="pc_3/pc_3_area"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.75, 0.875)
|
|
shape = SubResource("BoxShape3D_nfndi")
|
|
|
|
[node name="Label3D" type="Label3D" parent="pc_3"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.55271e-15, 0, 0.13)
|
|
text = "0"
|
|
|
|
[node name="computer_tick" type="Timer" parent="."]
|
|
autostart = true
|
|
|
|
[connection signal="body_entered" from="pc_1/pc_1_area" to="." method="_on_pc_1_area_body_entered"]
|
|
[connection signal="body_exited" from="pc_1/pc_1_area" to="." method="_on_pc_1_area_body_exited"]
|
|
[connection signal="body_entered" from="pc_2/pc_2_area" to="." method="_on_pc_2_area_body_entered"]
|
|
[connection signal="body_exited" from="pc_2/pc_2_area" to="." method="_on_pc_2_area_body_exited"]
|
|
[connection signal="body_entered" from="pc_3/pc_3_area" to="." method="_on_pc_3_area_body_entered"]
|
|
[connection signal="body_exited" from="pc_3/pc_3_area" to="." method="_on_pc_3_area_body_exited"]
|
|
[connection signal="timeout" from="computer_tick" to="." method="_on_computer_tick_timeout"]
|