public void SetStartUINode(GUI_HackingPort startNode) { this.startNode = startNode; RectTransform nodeRectTransform = startNode.GetComponent <RectTransform>(); RectTransform wireStartRectTransform = wireStart.GetComponent <RectTransform>(); wireStartRectTransform.position = nodeRectTransform.position; PositionWireBody(); }
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(); }