You dont need to connect them to each other. Connect leaves signals to leaves themselves, and You can recognize collision inside the function :
func on_area_enetered(area) :
if area is Player :
area.score +=10
queue_free()
there are many methods to recognize collision. is
keyword is for checking classes, meaning if You introduced Player as classname Player
. But You can also check for area.name
or area.get_parent().name
, filename
, has_method()
and so on.
Advanced sollution for this problem would be to connect all signals within autoloaded script.