Adaptive function of mating type