namespace UIExtend.Component
{
///
/// Component 扩展方法 - SetActive
///
public static class ComponentExtensions
{
///
/// 显示/隐藏组件所在的GameObject
///
public static void SetActive(this UnityEngine.Component component, bool active)
{
if (component && component.gameObject)
component.gameObject.SetActive(active);
}
}
}