13 lines
271 B
C#
13 lines
271 B
C#
using UnityEngine;
|
|
|
|
namespace BitStrap
|
|
{
|
|
public static class ComponentExtensions
|
|
{
|
|
public static T GetComponentInParent<T>(this Component self, bool includeInactive) where T : Component
|
|
{
|
|
return self.gameObject.GetComponentInParent<T>(includeInactive);
|
|
}
|
|
}
|
|
}
|