//Picks up the item and adds it into the inventory of the player public void PickUpItem(CharacterFunctions stats) { stats.PickUpitem(self); Destroy(gameObject); }