void UpdateScoreGauge() { if (scoreGauge.gameObject.activeSelf) { scoreGauge.SetProgressTransition((float)score / numberOfDishes); } }
public void ChangeProgressBar(float value) { if (scoreGauge.gameObject.activeSelf) { scoreGauge.SetProgressTransition(value); } }
void UpdateScoreGauge() { if (scoreGauge.gameObject.activeSelf) { scoreGauge.SetProgressTransition((float)score / GetLevelConfig().scoreGoal); } }