public void SetValues(GameMetrics gameMetrics) { for (int i = 0; i < 3; i++) { stars[i].gameObject.SetActive(i < gameMetrics.GetStars()); } score.text = "" + gameMetrics.GetScore(); // scorePercentage = (int)(((gameMetrics.GetScore() + 0f) / (MetricsController.GetController().GetMaxScore() + 0f)) * 100); correct.text = "" + gameMetrics.GetRightAnswers(); incorrect.text = "" + gameMetrics.GetWrongAnswers(); Invoke("IncrementProgressBar", 0.1f); RangeText.text = gameMetrics.GetRange().ToString(); BonusTimeText.text = "" + gameMetrics.GetBonusTime(); }
public void SetValues(GameMetrics gameMetrics) { for (int i = 0; i < 3; i++) { stars[i].gameObject.SetActive(i < gameMetrics.GetStars()); } score.text = "" + gameMetrics.GetScore(); scorePercentage = (int)(((gameMetrics.GetScore() + 0f) / (MetricsController.GetController().GetMaxScore() + 0f)) * 100); correct.text = "" + gameMetrics.GetRightAnswers(); incorrect.text = "" + gameMetrics.GetWrongAnswers(); Invoke("IncrementProgressBar", 0.1f); RangeText.text = gameMetrics.GetRange().ToString(); BonusTimeText.text = "" + gameMetrics.GetBonusTime(); }