Esempio n. 1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.tag == "Player")
     {
         Player        _player = other.GetComponent <Player>();
         WeaponManager _wm     = other.GetComponent <WeaponManager>();
         if (_wm.AttemptToPickUp(this, _player.weaponHolder, _player.id) && _player)
         {
             ItemPickedUp(_player.id);
         }
     }
 }