mirror of
https://github.com/Steffo99/hella-farm.git
synced 2024-11-25 09:34:24 +00:00
Move signals above exports in scripts
This commit is contained in:
parent
04110c9b26
commit
ab614ae84c
1 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue