1
Fork 0
mirror of https://github.com/Steffo99/hella-farm.git synced 2024-11-26 10:04:24 +00:00
hella-farm/behaviours/collectable.gd

15 lines
233 B
GDScript

extends Node2D
class_name Collectable
signal collected
@export var tag: StringName
func _on_mouse_area_mouse_entered() -> void:
collected.emit(tag)
func _on_collected(t: StringName) -> void:
Log.p(self, "Collected: %s" % t)