Digestion is external for mushrooms, and it evolved to be in animals' internal organs.
The signals that mushrooms send to each other through their mycelium network have the same physical and chemical mechanisms as the brain and neurological networks.
(Mushroom is a small part of the overall organism, it's just the fruiting body)