void PerformFade(FadeType type, float blend) { if (!fader) { return; } if (type == FadeType.FadeIn) { fader.FadeInNow(blend); } else if (type == FadeType.FadeOut) { fader.FadeOutNow(blend); } }