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:
parent
81e5211ef2
commit
f9e1fa6578
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue