Esempio n. 1
0
        protected virtual void OnDestroy()
        {
            if (m_object != null)
            {
                m_object.Reset();
                m_object = null;
            }

            if (m_dragDrop != null)
            {
                m_dragDrop.Reset();
            }
            if (m_instance == this)
            {
                m_instance = null;
            }
        }
Esempio n. 2
0
        protected virtual void OnDestroy()
        {
            IsOpened = false;

            if (m_object != null)
            {
                m_object = null;
            }

            if (m_dragDrop != null)
            {
                m_dragDrop.Reset();
            }
            if (((object)Instance) == this)
            {
                Instance = null;
            }
        }