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