mirror of
https://github.com/Steffo99/hella-farm.git
synced 2024-11-29 11:34:22 +00:00
16 lines
247 B
GDScript3
16 lines
247 B
GDScript3
|
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)
|