コード例 #1
0
        /// <summary>
        /// Destroys the GUI elements.
        /// </summary>
        public void Destroy()
        {
            if (guiLayout != null)
            {
                guiLayout.Destroy();
                guiLayout = null;
            }

            guiLayout      = null;
            guiTitleLayout = null;
            guiChildLayout = null;

            for (int i = 0; i < rows.Count; i++)
            {
                rows[i].Destroy();
            }

            rows.Clear();

            if (editRow != null)
            {
                editRow.Destroy();
            }

            editRow = null;
        }
コード例 #2
0
        /// <summary>
        /// Destroys all row GUI elements.
        /// </summary>
        public void Destroy()
        {
            if (rowLayout != null)
            {
                rowLayout.Destroy();
                rowLayout = null;
            }

            keyRowLayout     = null;
            keyLayout        = null;
            valueLayout      = null;
            titleLayout      = null;
            cloneBtn         = null;
            deleteBtn        = null;
            editBtn          = null;
            localTitleLayout = false;
        }