Assets.Scripts.Weapons.BaseGun.CanFire C# (CSharp) 메소드

CanFire() 개인적인 메소드

private CanFire ( ) : bool
리턴 bool
        private bool CanFire()
        {
            var ammunitionIsNotEmpty = (AmmunitionType == AmmoType.Infinite || _ammo.HasAmmo(AmmunitionType, 1));
            var itHasBeenLongEnoughSinceTheLastShot = Time.fixedTime - _lastShot > ShotDelay;

            return ammunitionIsNotEmpty && itHasBeenLongEnoughSinceTheLastShot;
        }
    }