Esempio n. 1
0
        public void Cleanup()
        {
            m_texture2D     = null;
            m_sprite        = null;
            m_renderTexture = null;
            m_targetBounds  = default(Bounds);

            if (m_container != null)
            {
                UIModuleModelUtils.UnRegisterTargetContainer(this);

                DestroyImmediate(m_container.gameObject);
                m_container = null;
            }
        }
Esempio n. 2
0
 void OnDestroy()
 {
     UIModuleModelUtils.UnRegisterTargetContainer(this);
 }