Beispiel #1
0
 private void ReduceStamina()
 {
     if (_nothingWasEaten)
     {
         if (!_bossModel.IsBossFightNow)
         {
             _staminaSlider.ReduceStaminaByNum(10);
         }
         _nothingWasEaten = false;
     }
     _bitingEnded = true;
 }
 private void ReduceStamina()
 {
     if (_nothingWasEaten)
     {
         if (!_bossModel.IsBossFightNow)
         {
             _soundController.PlayHitTreeSound();
         }
         if (!_bossModel.IsBossFightNow)
         {
             _staminaSlider.ReduceStaminaByNum(_eatingModel.EnergyMissClick);
         }
         _nothingWasEaten = false;
     }
     _bitingEnded = true;
 }