106    {
  109        {
  110            if ((isDepleted || (curStamina < sc.GetActivationThreshold() && curStamina < cap)))
  111            {
  112                sc.SetState(false);
  113                return false;
  114            }
  115            else
  116            {
  117                sc.SetState(true);
  118                return true;
  119            }
  120        }
  121        
  122        return false;
  123    }
void StaminaConsumer(float threshold, float threshold2, bool state)
ref map< EStaminaConsumers, ref StaminaConsumer > m_StaminaConsumers