In lower organisms like algae and fungi a shift from asexual reproduction to sexual reproduction occurs before the onset of adverse condition. This is to
Asexual reproduction is the common method of reproduction in organisms that have a relatively simple organisation, before the onset of adverse conditions they shift to sexual method of reproduction like algae and fungi.