Exemplo n.º 1
0
 private void OnTriggerEnter(Collider other)
 {
     if (Array.Exists(hand, i => i.Equals(other.GetComponent <XRBaseInteractor>())))
     {
         player.GetAmmoCount();
         canvas.enabled = true;
         interactor     = other.GetComponent <XRBaseInteractor>();
     }
 }