public MotionCrossfader GetMotionCrossfader() { if (MotionCrossfader == null) { MotionCrossfader[] crossfaders = GetComponentsInChildren <MotionCrossfader>(true); if (crossfaders != null && crossfaders.Length > 0) { MotionCrossfader = crossfaders[0]; } } return(MotionCrossfader); }
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; }