Esempio n. 1
0
        private void HandleNodeViewDropped(ChainNodeView droppedNodeView)
        {
            if (!ChainView.GroupTransferModeActive)
            {
                return;
            }

            Debug.Log("node view dropped");

            if (NodeViews.Contains(droppedNodeView))
            {
                return;
            }

            droppedNodeView.RequestTransfer(this);
        }
Esempio n. 2
0
        private void HandlePreviewNodeViewDrop(ChainNodeView nodeView)
        {
            if (!ChainView.GroupTransferModeActive)
            {
                return;
            }

            if (nodeView == null)
            {
                IndicateDropAcceptance(false);
                return;
            }

            if (NodeViews.Contains(nodeView))
            {
                IndicateDropAcceptance(false);
                return;
            }

            IndicateDropAcceptance(true);
        }