protected virtual void Attach(NVRAttachPoint point) { point.Attached(this); AttachedItem = point.Item; AttachedPoint = point; }
protected virtual void Awake() { IsAttached = false; Item = FindNVRItem(this.gameObject); if (Item == null) { Debug.LogError("No NVRInteractableItem found on this object. " + this.gameObject.name, this.gameObject); } AttachPointMapper.Register(this.GetComponent<Collider>(), this); }
protected virtual void Detach() { AttachedPoint.Detached(this); AttachedItem = null; AttachedPoint = null; }