public static T FindChildWithTag <T>(this MonoBehaviour gameObject, string tag) where T : Component { return(Enumerable.SingleOrDefault <T>(gameObject.FindChildrenWithTag(tag))); }
public static GameObject FindChildWithTag(this MonoBehaviour gameObject, string tag) { return(Enumerable.SingleOrDefault <GameObject>(gameObject.FindChildrenWithTag(tag))); }