mirror of
https://github.com/Steffo99/hella-farm.git
synced 2024-11-21 23:54:23 +00:00
Add debug logging on Edible.eaten
This commit is contained in:
parent
ac4817cf3d
commit
deff3534c8
2 changed files with 5 additions and 0 deletions
|
@ -14,3 +14,6 @@ signal eaten
|
||||||
|
|
||||||
func eat():
|
func eat():
|
||||||
eaten.emit()
|
eaten.emit()
|
||||||
|
|
||||||
|
func _on_eaten() -> void:
|
||||||
|
Log.p(self, "Got eaten.")
|
||||||
|
|
|
@ -4,3 +4,5 @@
|
||||||
|
|
||||||
[node name="Edible" type="Node"]
|
[node name="Edible" type="Node"]
|
||||||
script = ExtResource("1_l6vtr")
|
script = ExtResource("1_l6vtr")
|
||||||
|
|
||||||
|
[connection signal="eaten" from="." to="." method="_on_eaten"]
|
||||||
|
|
Loading…
Reference in a new issue