private void Update() { if (isSprinting) { energySystem.DrainEnergyOverTime(sprintDrainSpeed); } else { energySystem.RegenEnergyOverTime(energyRegenSpeed); } playerMovement.HasEnergy = energySystem.GetEnergyPercent() != 0; }