private void Start() { bowAnimation = GetComponent <BowAnimation>(); handle = GetComponentInChildren <BowHandle>(); interact = GetComponent <VRTK_InteractableObject>(); interact.InteractableObjectGrabbed += new InteractableObjectEventHandler(DoObjectGrab); }
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); }
// 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); } }
private void Start() { bowAnimation = GetComponent <BowAnimation>(); handle = GetComponentInChildren <BowHandle>(); }
private void Start() { bowAnimation = GetComponent<BowAnimation>(); handle = GetComponentInChildren<BowHandle>(); interact = GetComponent<VRTK_InteractableObject>(); interact.InteractableObjectGrabbed += new InteractableObjectEventHandler(DoObjectGrab); }