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

Add debug logging on Edible.eaten

This commit is contained in:
Steffo 2024-04-16 00:16:57 +02:00
parent ac4817cf3d
commit deff3534c8
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0
2 changed files with 5 additions and 0 deletions

View file

@ -14,3 +14,6 @@ signal eaten
func eat():
eaten.emit()
func _on_eaten() -> void:
Log.p(self, "Got eaten.")

View file

@ -4,3 +4,5 @@
[node name="Edible" type="Node"]
script = ExtResource("1_l6vtr")
[connection signal="eaten" from="." to="." method="_on_eaten"]