protected virtual void OnEnable() { runeMixerRef = FindObjectOfType <RuneMaker>(); toggleZoneA = GetComponent <VRTK_SnapDropZone>(); toggleZoneA.ObjectSnappedToDropZone += OnSnap; toggleZoneA.ObjectUnsnappedFromDropZone += OnUnSnap; }
public void OnRunePickup() { this.GetComponent <Rigidbody>().constraints = RigidbodyConstraints.None; if (runeMakerRef != null) { runeMakerRef.OnPickUpRuneMixer(); runeMakerRef = null; } }