private void LanchTurret() { if (isFireActive) { soundInstance.Resume(); if (cooldown <= 0.0f) { shotHandler.RegisterShot(new MovingTurretShot(Game, this)); cooldown = 60000.0f / fireRate_spm; } } else { soundInstance.Pause(); } }
private void LanchTurret() { if (isFireActive) { soundInstance.Resume(); if (cooldown <= 0.0f) { shotHandler.RegisterShot(new MovingTurretShot(Game, this)); cooldown = 60000.0f / fireRate_spm; } } else { soundInstance.Pause(); } }