private void movementModifier(bool running, Vector2 inputDir) { if (running && playerStamina.HasStamina() && inputDir[1] > 0) { playerStamina.LoseStamina(); } if (!running) { playerStamina.RecoverStamina(); } }