Exemple #1
0
 void Reset()
 {
     minSize  = 0;
     maxSize  = 10;
     lerpTime = 1;
     lerpType = MathR.LerpType.LINEAR;
 }
Exemple #2
0
 public static IEnumerable FadeOut(this MediaPlayerCtrl self, float time, MathR.LerpType type)
 {
     return(self.Fade(false, time, type));
 }
Exemple #3
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));
        }
Exemple #4
0
 public static IEnumerable Fade(this MediaPlayerCtrl self, float start, float end, float time, MathR.LerpType type)
 {
     foreach (var value in MathR.LerpE(start, end, time, type))
     {
         self.ForEachRenderer(r => r.SetAlpha(value));
         yield return(null);
     }
 }