1
Fork 0
mirror of https://github.com/Steffo99/hella-farm.git synced 2024-11-21 23:54:23 +00:00

Move signals above exports in scripts

This commit is contained in:
Steffo 2024-04-13 23:41:00 +02:00
parent 04110c9b26
commit ab614ae84c
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

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