예제 #1
0
        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();
        }
예제 #2
0
 public void RemoveNodeView(BaseNodeView _nodeView)
 {
     RemoveElement(_nodeView);
     NodeViews.Remove(_nodeView.Model.GUID);
 }