How to make it so when you have 0 current ammo you can't shoot, and when you have 0 max. ammo you can't reload.

How do you make it so you can only shoot with 1 or more current ammo and reload with 1 or more max. ammo?

Hello, for some reason I don’t understand my browser won’t let me view the project and scripts you posted, so this is a very generic solution, however it is what I would probably use.

Private int currentAmmo;
Private int maxAmmo;

void Update()
{
if (currentAmmo >= 1 && //whatever button your using to fire)
{
//firing code
currentAmmo = currentAmmo - 1;
}
if (maxAmmo >= 1 && // whatever button your using to reload)
{
//reloading code
}
}