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

GetAmmo() public method

public GetAmmo ( AmmoType ammoType ) : int
ammoType AmmoType
return int
        public int GetAmmo(AmmoType ammoType)
        {
            return _ammo.ContainsKey(ammoType) ? _ammo[ammoType] : 0;
        }