Assets.Scripts.Player.PlayerAmmo.RemoveAmmo C# (CSharp) Метод

RemoveAmmo() публичный Метод

public RemoveAmmo ( AmmoType ammoType, int amount ) : void
ammoType AmmoType
amount int
Результат void
        public void RemoveAmmo(AmmoType ammoType, int amount)
        {
            if (_ammo.ContainsKey(ammoType))
            {
                _ammo[ammoType] -= amount;
            }
        }
    }