public void addItemPlayer(Item item) { //Debug.Log(coll.gameObject.name); //IItem item = coll.collider.GetComponent<IItem>(); if (item != null) { Debug.Log("somethignhere"); Inventory.AddItem(item); } }