public void SwitchItemInHand() { GameObject next = inventory.GetNextItem(); if (next != null) { if (itemInHand != null) { itemInHand.gameObject.SetActive(false); inventory.AddItem(itemInHand.gameObject); } next.SetActive(true); pickupManager.EquipeWeapon(next); } }