Example #1
0
    void PerformFade(FadeType type, float blend)
    {
        if (!fader)
        {
            return;
        }

        if (type == FadeType.FadeIn)
        {
            fader.FadeInNow(blend);
        }
        else if (type == FadeType.FadeOut)
        {
            fader.FadeOutNow(blend);
        }
    }