Exemple #1
0
 public void SetAttachPoint(Vector3 localPos, Transform parent, ProtagController protag)
 {
     rbody.isKinematic   = true;
     rbody.useGravity    = false;
     col.enabled         = false;
     tform.parent        = parent;
     tform.localPosition = localPos;
     if (mousePoint)
     {
         mousePoint.Deactivate();
     }
     if (mouseIndex > -1)
     {
         Mice.GetMouse(mouseIndex).SetHeld(true);
     }
 }