1
Fork 0
mirror of https://github.com/Steffo99/hella-farm.git synced 2024-11-29 11:34:22 +00:00
hella-farm/behaviours/collectable.gd

16 lines
247 B
GDScript3
Raw Normal View History

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