protected virtual void CheckArrowRelease() { var shootArrow = false; if (StringLimitStyle == HVRBowLimitStyle.ShootArrow && _nockDistance > StringLimit) { NockGrabbable.ForceRelease(); shootArrow = Arrow; } if (!Arrow) { return; } if (!shootArrow && _previousHeld && !NockGrabbable.IsBeingHeld && _nockDistance > ShootThreshold) { shootArrow = true; } if (shootArrow) { OnArrowShot(); } }
private IEnumerator DropAndDestroy(HVRGrabbable grabbable) { yield return(null); grabbable.ForceRelease(); Destroy(grabbable.gameObject); }
private IEnumerator Drop(HVRGrabbable grabbable) { yield return(null); grabbable.ForceRelease(); }