Exemple #1
0
 private void Start()
 {
     bowAnimation = GetComponent <BowAnimation>();
     handle       = GetComponentInChildren <BowHandle>();
     interact     = GetComponent <VRTK_InteractableObject>();
     interact.InteractableObjectGrabbed += new InteractableObjectEventHandler(DoObjectGrab);
 }
Exemple #2
0
 private void Start()
 {
     hapticOnDrawback.LoadFromAsset(drawHaptic);
     hapticOnRelease.LoadFromAsset(releaseHaptic);
     hapticwhilePulled.LoadFromAsset(pulledHapticName);
     pulledHandle = hapticwhilePulled.CreateHandle();
     bowAnimation = GetComponent <BowAnimation>();
     handle       = GetComponentInChildren <BowHandle>();
     interact     = GetComponent <VRTK_InteractableObject>();
     interact.InteractableObjectGrabbed += new InteractableObjectEventHandler(DoObjectGrab);
 }
Exemple #3
0
        // Token: 0x06001EBA RID: 7866 RVA: 0x0009C098 File Offset: 0x0009A298
        private void OnTriggerEnter(Collider collider)
        {
            BowHandle componentInParent = collider.GetComponentInParent <BowHandle>();

            if (componentInParent != null && this.obj != null && componentInParent.aim.IsHeld() && this.obj.IsGrabbed(null))
            {
                componentInParent.nockSide = collider.transform;
                this.arrow.transform.SetParent(componentInParent.arrowNockingPoint);
                this.CopyNotchToArrow();
                collider.GetComponentInParent <BowAim>().SetArrow(this.arrow);
                Object.Destroy(base.gameObject);
            }
        }
Exemple #4
0
 private void Start()
 {
     bowAnimation = GetComponent <BowAnimation>();
     handle       = GetComponentInChildren <BowHandle>();
 }
Exemple #5
0
 private void Start()
 {
     bowAnimation = GetComponent<BowAnimation>();
     handle = GetComponentInChildren<BowHandle>();
     interact = GetComponent<VRTK_InteractableObject>();
     interact.InteractableObjectGrabbed += new InteractableObjectEventHandler(DoObjectGrab);
 }