void Update() { if (Input.GetKeyDown(KeyCode.V)) { GameObject.Find("Hand").GetComponent <SkinnedMeshRenderer>().enabled = true; playerWeaponController.EquipWeapon(sword); } if (Input.GetKeyDown(KeyCode.B)) { consumableController.ConsumeItem(PotionLog); } if (Input.GetKeyDown(KeyCode.C)) { GameObject.Find("Hand").GetComponent <SkinnedMeshRenderer>().enabled = false; playerWeaponController.EquipWeapon(staff); } }
public void ConsumeItem(Item itemToConsume) { consumableController.ConsumeItem(itemToConsume); }