Exemplo n.º 1
0
        /// <summary>
        /// This function is called when the MonoBehaviour will be destroyed.
        /// </summary>
        protected override void OnDestroy()
        {
            OnSelect.RemoveListener(OnSelectCallback);
            OnDeselect.RemoveListener(OnDeselectCallback);

            RemoveCallbacks();

            base.OnDestroy();
        }
Exemplo n.º 2
0
        /// <summary>
        /// This function is called when the MonoBehaviour will be destroyed.
        /// </summary>
        public override void OnDestroy()
        {
            OnSelect.RemoveListener(OnSelectCallback);
            OnDeselect.RemoveListener(OnDeselectCallback);

            ScrollRect = null;

            RemoveCallbacks();

            base.OnDestroy();
        }
Exemplo n.º 3
0
        /// <summary>
        /// This function is called when the MonoBehaviour will be destroyed.
        /// </summary>
        public override void OnDestroy()
        {
            OnSelect.RemoveListener(OnSelectNode);
            OnDeselect.RemoveListener(OnDeselectNode);

            if (Nodes != null)
            {
                Nodes.Dispose();
                //Nodes = null;
            }

            base.OnDestroy();
        }
Exemplo n.º 4
0
        /// <summary>
        /// This function is called when the MonoBehaviour will be destroyed.
        /// </summary>
        protected override void OnDestroy()
        {
            layout       = null;
            LayoutBridge = null;

            OnSelect.RemoveListener(OnSelectCallback);
            OnDeselect.RemoveListener(OnDeselectCallback);

            ScrollRect = null;

            RemoveCallbacks();

            base.OnDestroy();
        }