add new scene, bees, beehive picking, suit picking wip
This commit is contained in:
8
scripts/collector.gd
Normal file
8
scripts/collector.gd
Normal file
@@ -0,0 +1,8 @@
|
||||
class_name Collector
|
||||
extends Area3D
|
||||
|
||||
signal collected(body: Node3D)
|
||||
|
||||
func _on_body_entered(body: Node3D) -> void:
|
||||
if body.is_in_group("collectable"):
|
||||
collected.emit(body)
|
||||
Reference in New Issue
Block a user