extends Area2D func collect_coin(body): body.increase_coins() queue_free() func _on_body_entered(body): collect_coin(body)