//Jimmy Vegas Unity Tutorial //This script will pick up your gun using System.Collections; using System.Collections.Generic; using UnityEngine; public class HandgunPickup : MonoBehaviour { public GameObject realHandgun; public GameObject fakeHandgun; public AudioSource handgunPickupSound; void OnTriggerEnter(Collider other) { realHandgun.SetActive(true); fakeHandgun.SetActive(false); handgunPickupSound.Play(); } }