//Contains the photonview controls to disable the item after pickup private void PickUpControls() { RaycastHit hit; Ray ray = Camera.allCameras[0].ScreenPointToRay(Input.mousePosition); if (Physics.Raycast(ray, out hit, hitDistance)) { //Physics objs HighlightInteractables(hit); //Pickup items itemPickup = HighlightItems(hit); if (itemPickup != null) { if (Input.GetKeyDown(KeyCode.E)) { inventory.PickUp(itemPickup); } } } else { hud.SetIdentityText(""); } }