private void SetPercentage(float newPercentage) { progressBar.setPercentage(Mathf.Max(newPercentage, 0.0f)); }