Пример #1
0
        internal override void Destruct()
        {
            m_ID.Deregister();
            Dispose();

            base.Destruct();
        }
        internal override void Destruct()
        {
            if (m_ID.Value != null)
            {
                m_ID.Deregister();
            }

            Dispose();

            base.Destruct();
        }
Пример #3
0
        internal void Destruct()
        {
            for (int i = 0; i < m_components.Count; i++)
            {
                m_components[i].OnRemove(this);
            }
            m_components.Clear();

            if (m_ID.Value != null)
            {
                m_ID.Deregister();
            }
        }