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

HasAmmo() public method

public HasAmmo ( AmmoType ammoType, int amount ) : bool
ammoType AmmoType
amount int
return bool
        public bool HasAmmo(AmmoType ammoType, int amount)
        {
            return ammoType == AmmoType.Infinite || GetAmmo(ammoType) > amount;
        }