public bool Attach(LinkPort item) { item.ConnectedNode = this; ConnectedNode = item; item.ResetTransform(); item.Body.transform.SetParent(Body.transform); return(true); }
public static void AttachNodes(LinkPort moveAblePort, LinkPort staticPort) { moveAblePort.ConnectedNode = staticPort; staticPort.ConnectedNode = moveAblePort; moveAblePort.ResetTransform(); }