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