void GrabObject(object sender, ControllerEventArgs e) { //Transform tip = e.controller.GetComponent<InitAttachment>().tip; Transform tip = e.controller.transform.Find("Custom_Model"); if (e.isLeft && leftActive != null) { if (leftActive.isAttach) { leftActive.transform.SetParent(tip, true); } else { leftActive.MoveTowards(tip.position); } } else if (!e.isLeft && rightActive != null) { if (rightActive.isAttach) { rightActive.transform.SetParent(tip, true); } else { rightActive.MoveTowards(tip.position); } } }