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