Answer:
Parasitic and Saprophytic
Explanation:
These kinds of fungus are called heterotrophic, that means they can't produce their own resources of energy to survive the environment, in that way, they need to consume dead matter, as said on the question, to grab the energy needed for their survival. On stardards, organisms that can produce their own food use photosynthesys to do that, just like plants, but it's not this case.
This living being can also be parasitic, this means that they can harm other living beings and consume them to get their resources, and these are commonly found in nature too just like the saprophytic.