IEnumerator FadeProgressLable(float amount) { for (float f = progressLabel.CurrentPosition; f <= amount; f += (13.24f * FadeSpeed)) { progressLabel.SetProgressPosition(f); yield return(new WaitForSeconds(0.01f)); } progressLabel.SetProgressPosition(amount); }