예제 #1
0
        public static IEnumerable Fade(this MediaPlayerCtrl self, bool fadeIn, float time, MathR.LerpType type)
        {
            float start = (fadeIn) ? 0 : 1;
            float end   = (fadeIn) ? 1 : 0;

            return(self.Fade(start, end, time, type));
        }
예제 #2
0
 public static IEnumerable FadeOut(this MediaPlayerCtrl self, float time, MathR.LerpType type)
 {
     return(self.Fade(false, time, type));
 }