private void OnTriggerEnter(Collider other) { if (other.CompareTag("Player")) { Destroy(gameObject); WeaponSelect.addWeapon(this.gameObject.name); Debug.Log(this.gameObject.name); AudioSource.PlayClipAtPoint(collectClip, player.transform.position, .5f); } }