Esempio n. 1
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);
     }
 }
Esempio n. 2
0
 public static void SetAlpha(this MediaPlayerCtrl self, float value)
 {
     self.ForEachRenderer(r => r.SetAlpha(value));
 }
Esempio n. 3
0
 public static void DrawAsBackground(this MediaPlayerCtrl self)
 {
     self.ForEachRenderer(r => r.RenderAsBackground());
 }