FindObjectOfType returning null
问题 The issue I am having is with a dropped item i pick up adding ammo to a gun. Built a Gun class with all the methods and variables. Built a Rifle class derived from the Gun class The Rifle works perfect No Issues I now am adding a "PickUp" system where x amount of enemies drop a pickup. This is the script on the item to pick up public class AddARAmmo : MonoBehaviour { private Rifle rifle; private void Awake() { rifle = FindObjectOfType<Rifle>(); } private void OnTriggerEnter(Collider other) {