public static GameObject FindChild(this MonoBehaviour component, string childName, bool recursive) { if (recursive) { return(component.FindChild(childName)); } return(FindChildRecursively(component.transform, childName)); }