public void CalculateScore() { int score = GameMng.GetCategoryScore(myCategory.questionType); totalScoreText.text = score + "/" + "100"; if (score == 100) { flagImage.gameObject.SetActive(true); } else { flagImage.gameObject.SetActive(false); } }
void CalculateGainedScore() { score = 0; for (int i = 0; i < examCategorys; i++) { score += GameMng.GetCategoryScore((QuestionType)i); } if (score >= MinScore2Open()) { isOpen = true; } examScoreText.text = score.ToString() + " / " + MinScore2Open().ToString(); }