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

            OnChanged();
        }
Beispiel #2
0
 void RemoveComponent()
 {
     m_Container.RemoveComponent <T>();
     OnChanged();
 }