using UnityEngine; namespace BitStrap { public static class ComponentExtensions { public static T GetComponentInParent(this Component self, bool includeInactive) where T : Component { return self.gameObject.GetComponentInParent(includeInactive); } } }