1
Fork 0
mirror of https://github.com/Steffo99/swear-jar.git synced 2024-11-25 09:04:19 +00:00

Use new syntax for Collector and UniversalCollector signals

This commit is contained in:
Steffo 2023-10-03 01:48:59 +02:00
parent 81e5211ef2
commit f9e1fa6578
Signed by: steffo
GPG key ID: 2A24051445686895
2 changed files with 3 additions and 3 deletions

View file

@ -34,5 +34,5 @@ func _on_body_entered(body: Node2D):
collected.emit(body) collected.emit(body)
if collected_count >= collecting_amount: if collected_count >= collecting_amount:
goal.emit() goal.emit()
emit_signal("goal") goal.emit()
collected_count = 0 collected_count = 0

View file

@ -24,7 +24,7 @@ func _on_body_entered(body: Node2D):
if collectible: if collectible:
collected_count += 1 collected_count += 1
collectible.collect() collectible.collect()
emit_signal("collected", body) collected.emit(body)
if collected_count >= collecting_amount: if collected_count >= collecting_amount:
emit_signal("goal") goal.emit()
collected_count = 0 collected_count = 0