21 if(Application.isPlaying) {
22 GameObject.DestroyImmediate(gameObject);
26 grab_point = AVR.Core.Utils.Misc.CreateEmptyGameObject(
"GrabPoint", transform);
30 AVR_BasicGrabProvider gp = FindObjectOfType<AVR_BasicGrabProvider>();
32 grab_point.localPosition = gp.transform.InverseTransformPoint(gp.grabPoint.position);
33 }
catch(System.Exception) { }
35 node = GetComponentInParent<AVR_GrabNode>();
37 transform.position = transform.parent.position - (grab_point.position - transform.position);