/// <summary> /// Handle smoke logic. /// </summary> private void HandleSmoke() { // If not currently shooting, refill the gun if (!isSmokebuttonClicked) { smokeButtonScorebar.IncreaseCurrentValue( ConfigurationManager.ModesConfiguration[gameDifficultyLevel].IncreaseAmountSpeed); beeKeeper.IsShootingSmoke = false; } else { // Check that the gun is not empty if (smokeButtonScorebar.CurrentValue <= smokeButtonScorebar.MinValue) { beeKeeper.IsShootingSmoke = false; } else { beeKeeper.IsShootingSmoke = true; smokeButtonScorebar.DecreaseCurrentValue( ConfigurationManager.ModesConfiguration[gameDifficultyLevel].DecreaseAmountSpeed); } } }
public void DecreaseHoney(int amount) { score.DecreaseCurrentValue(amount); }
/// <summary> /// Decreases honey stored in the jar by the specified amount. /// </summary> /// <param name="value">The amount of honey to remove from the jar.</param> public void DecreaseHoney(int value) { score.DecreaseCurrentValue(value); }