예제 #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();
        }
예제 #2
0
파일: ListView.cs 프로젝트: zwong91/Titan
        /// <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();
        }
예제 #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();
        }
예제 #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();
        }
예제 #5
0
 protected override void OnDestroy()
 {
     OnSelect.RemoveListener(NewSelect);
 }