private void RemoveChainNodeView(ChainNodeView view, bool destroy) { view.BoundsChanged -= HandleChildViewBoundsChanged; view.TransferRequested -= HandleChildNodeViewTransferRequested; view.DuplicationRequested -= HandleNodeViewDuplicationRequested; NodeViews.Remove(view); if (destroy) { Destroy(view.gameObject); } BoundsDirty = true; UpdateDeleteButtonState(); }
public void RemoveNodeView(BaseNodeView _nodeView) { RemoveElement(_nodeView); NodeViews.Remove(_nodeView.Model.GUID); }