function Update (){
if (Input.GetKeyDown(“1”)){
healthPot ();
}
function healthPot (){
health += healthPotion;
healthPotionAmount --;
Debug.Log( healthPotionAmount + " health potion reamaining.");
}
I want to make it so when the amount of health potions reach 0, it will disable the ability to use the keyboard input, or something close to that.