Assets.Scripts.Player.PlayerAmmo.RemoveAmmo C# (CSharp) Method

RemoveAmmo() public method

public RemoveAmmo ( AmmoType ammoType, int amount ) : void
ammoType AmmoType
amount int
return void
        public void RemoveAmmo(AmmoType ammoType, int amount)
        {
            if (_ammo.ContainsKey(ammoType))
            {
                _ammo[ammoType] -= amount;
            }
        }
    }