/// <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(); }
/// <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(); }
/// <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(); }
/// <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(); }
protected override void OnDestroy() { OnSelect.RemoveListener(NewSelect); }