public virtual void OnObjectEnteredSnapDropZone(SnapDropZoneEventArgs e)
 {
     if (ObjectEnteredSnapDropZone != null)
     {
         ObjectEnteredSnapDropZone(this, e);
     }
 }
Esempio n. 2
0
    protected virtual void OnUnsnap(object sender, VRTK.SnapDropZoneEventArgs e)
    {
        print("UNyuh");
        theAnimator.SetBool("HasKey", false);

        theKey.GetComponent <VRTK_TransformFollow>().enabled = false;
    }
Esempio n. 3
0
 // Token: 0x060011F0 RID: 4592 RVA: 0x00067943 File Offset: 0x00065B43
 public virtual void OnObjectSnappedToDropZone(SnapDropZoneEventArgs e)
 {
     if (this.ObjectSnappedToDropZone != null)
     {
         this.ObjectSnappedToDropZone(this, e);
     }
 }
 public virtual void OnObjectUnsnappedFromDropZone(SnapDropZoneEventArgs e)
 {
     UnsnapObject();
     if (ObjectUnsnappedFromDropZone != null)
     {
         ObjectUnsnappedFromDropZone(this, e);
     }
 }
 public virtual void OnObjectSnappedToDropZone(SnapDropZoneEventArgs e)
 {
     isSnapped = true;
     if (ObjectSnappedToDropZone != null)
     {
         ObjectSnappedToDropZone(this, e);
     }
 }
Esempio n. 6
0
    protected virtual void OnSnap(object sender, VRTK.SnapDropZoneEventArgs e)
    {
        print("yuh");
        theAnimator.SetBool("HasKey", true);

        theKey.GetComponent <VRTK_TransformFollow>().enabled = true;
        theDoorRotator.isLocked = false;
    }
Esempio n. 7
0
        private void ObjectSnappedInto(object sender, SnapDropZoneEventArgs e)
        {
            VRTK_Logger.Info("Fully Snapped " + e.snappedObject.name);
            GameObject goCube = GameObject.Find("GoCube");

            goCube.GetComponent <BlockListener>().getSnapObjects();

            getSnapObjects();
        }
Esempio n. 8
0
 public virtual void OnObjectSnappedToDropZone(SnapDropZoneEventArgs e)
 {
     if (ObjectSnappedToDropZone != null)
     {
         ObjectSnappedToDropZone(this, e);
     }
     //==Amarillo==
     //if (sdo) sdo.ObjectiveState(true, objectiveIndex);
 }
Esempio n. 9
0
 public virtual void OnObjectUnsnappedFromDropZone(SnapDropZoneEventArgs e)
 {
     UnsnapObject();
     if (ObjectUnsnappedFromDropZone != null)
     {
         ObjectUnsnappedFromDropZone(this, e);
     }
     //==Amarillo==
     //if (sdo) sdo.ObjectiveState(false, objectiveIndex);
 }
Esempio n. 10
0
        private void ObjectExited(object sender, SnapDropZoneEventArgs e)
        {
            GameObject goCube = GameObject.Find("GoCube");

            goCube.GetComponent <BlockListener>().getSnapObjects();
            getSnapObjects();
            //currentSnap = snapZone.GetCurrentSnappedObject();
            //goCube.GetComponent<BlockListener>().snapObjects.Remove(currentSnap);
            //problem here,
            //Debug.Log(currentSnap.gameObject.name + " Exited");
        }
Esempio n. 11
0
 private void ObjectEnteredEvent(object sender, SnapDropZoneEventArgs e)
 {
     //VRTK_Logger.Info("Entered Snap Area");
 }
Esempio n. 12
0
 private void ObjectSnappedInto(object sender, SnapDropZoneEventArgs e)
 {
     VRTK_Logger.Info("Fully Snapped " + e.snappedObject.name);
 }