public void shoot() { if (getShotCooldown().ElapsedMilliseconds >= 1000 / getFirerate()) { getShotCooldown().Restart(); BulletMediator.playerShot(this); } }
public void shoot() { if (shotCooldown.ElapsedMilliseconds >= 1000 / fireRate) { shotCooldown.Restart(); BulletMediator.playerShot(this); } }