Beispiel #1
0
    private void OnTriggerEnter(Collider collider)
    {
        var handle = collider.GetComponentInParent <BowHandle>();

        if (handle != null && handle.aim.IsHeld() && obj.IsGrabbed())
        {
            handle.nockSide        = collider.transform;
            arrow.transform.parent = handle.arrowNockingPoint;

            CopyNotchToArrow();

            collider.GetComponentInParent <BowAim>().SetArrow(arrow);
            Destroy(this.gameObject);
        }
    }
Beispiel #2
0
 public bool IsHeld()
 {
     return(interact.IsGrabbed());
 }