pickup_handler.tscn 620 B

12345678910111213141516171819
  1. [gd_scene load_steps=3 format=3 uid="uid://byif52d1xkl3u"]
  2. [ext_resource type="Script" path="res://pickup/pickup_handler.gd" id="1_5qec3"]
  3. [sub_resource type="SphereShape3D" id="SphereShape3D_i5on0"]
  4. resource_local_to_scene = true
  5. margin = 0.001
  6. radius = 0.3
  7. [node name="PickupHandler" type="Area3D"]
  8. script = ExtResource("1_5qec3")
  9. pickup_action = null
  10. [node name="CollisionShape3D" type="CollisionShape3D" parent="."]
  11. shape = SubResource("SphereShape3D_i5on0")
  12. [connection signal="body_entered" from="." to="." method="_on_body_entered"]
  13. [connection signal="body_exited" from="." to="." method="_on_body_exited"]