ButtonInfo.tscn 1.0 KB

123456789101112131415161718192021222324
  1. [gd_scene load_steps=5 format=3 uid="uid://ouldp5ceqdgy"]
  2. [ext_resource type="Script" path="res://entities/objects/button_info/ButtonInfo.gd" id="1_ibcps"]
  3. [ext_resource type="ArrayMesh" uid="uid://nssffag5qv" path="res://entities/objects/button_info/button_info.obj" id="2_ayr18"]
  4. [ext_resource type="Material" uid="uid://cql3ikoc5vkwq" path="res://entities/objects/button_info/button_info.material" id="2_s7csu"]
  5. [sub_resource type="BoxShape3D" id="BoxShape3D_knq5m"]
  6. size = Vector3(0.6, 1.2, 0.6)
  7. [node name="InfoButton" type="Area3D" groups=["info_button"]]
  8. collision_layer = 0
  9. collision_mask = 2
  10. script = ExtResource("1_ibcps")
  11. [node name="MeshInstance3D" type="MeshInstance3D" parent="."]
  12. material_override = ExtResource("2_s7csu")
  13. mesh = ExtResource("2_ayr18")
  14. [node name="CollisionShape3D" type="CollisionShape3D" parent="."]
  15. shape = SubResource("BoxShape3D_knq5m")
  16. [connection signal="body_entered" from="." to="." method="_on_InfoButton_body_entered"]
  17. [connection signal="body_exited" from="." to="." method="_on_InfoButton_body_exited"]