Exemplo n.º 1
0
 public MotionCrossfader GetMotionCrossfader()
 {
     if (MotionCrossfader == null)
     {
         MotionCrossfader[] crossfaders = GetComponentsInChildren <MotionCrossfader>(true);
         if (crossfaders != null && crossfaders.Length > 0)
         {
             MotionCrossfader = crossfaders[0];
         }
     }
     return(MotionCrossfader);
 }
Exemplo n.º 2
0
 public MotionCrossfader GetCrossfader()
 {
     if (Crossfader == null)
     {
         MotionCrossfader[] faders = GetComponentsInChildren <MotionCrossfader>(true);
         if (faders != null && faders.Length > 0)
         {
             Crossfader = faders[0];
         }
     }
     return(Crossfader);
 }
Exemplo n.º 3
0
 void OnEnable()
 {
     Instance = target as MotionCrossfader;
 }