Esempio n. 1
0
        public void Destroy()
        {
            if (m_textComponent != null)
            {
                if (!m_textComponent.IsDestroyed())
                {
                    GameObject.DestroyImmediate(m_textComponent);
                }
            }

            if (m_iconComponent != null)
            {
                if (!m_iconComponent.IsDestroyed())
                {
                    GameObject.DestroyImmediate(m_iconComponent);
                }
            }
        }