void RemoveComponent() { m_Container.RemoveComponent <T>(); if (m_Container.HasComponent <T>()) { m_Element?.SetTarget(m_Container.GetComponent <T>()); SetBorderColor(); } else { RemoveFromHierarchy(); } OnChanged(); }
void RemoveComponent() { m_Container.RemoveComponent <T>(); OnChanged(); }