// Start is called before the first frame update void Start() { displayManager = GameObject.FindGameObjectWithTag("DisplayManager").GetComponent <PickUpItemDisplayManager>(); StartCoroutine("DestroyMessage"); }
// Start is called before the first frame update void Start() { lootManager = GameObject.FindGameObjectWithTag("LootManager").GetComponent <LootManager>(); displayManager = GameObject.FindGameObjectWithTag("DisplayManager").GetComponent <PickUpItemDisplayManager>(); player = GameObject.FindGameObjectWithTag("Player"); }