예제 #1
0
        public void SetStartUINode(GUI_HackingPort startNode)
        {
            this.startNode = startNode;
            RectTransform nodeRectTransform      = startNode.GetComponent <RectTransform>();
            RectTransform wireStartRectTransform = wireStart.GetComponent <RectTransform>();

            wireStartRectTransform.position = nodeRectTransform.position;
            PositionWireBody();
        }
예제 #2
0
        public void SetEndUINode(GUI_HackingPort endNode)
        {
            if (endNode == null)
            {
                return;
            }

            this.endNode = endNode;
            RectTransform nodeRectTransform    = endNode.GetComponent <RectTransform>();
            RectTransform wireEndRectTransform = wireEnd.GetComponent <RectTransform>();

            wireEndRectTransform.position = nodeRectTransform.position;
            PositionWireBody();
        }