Shooter.Controls.Weapon.CheckFireRate C# (CSharp) Method

CheckFireRate() public method

public CheckFireRate ( double timeElapsed ) : bool
timeElapsed double
return bool
        public bool CheckFireRate(double timeElapsed) {
            timeSinceLastShot += timeElapsed;
            if (timeSinceLastShot > (1000 / fireRate)) {
                return true;
            } else {
                queued = true;
                return false;
            }
        }