public bool IsDoneExcelent() { if (GameMng.GetExamBestScore(examTitle) == examQuestions * 3) { return(true); } return(false); }
private void SaveScore() { if (currentQType == QType.Practice) { int lastScore = GameMng.GetLessonBestScore(GameMng.selectedCategory, GameMng.selectedLessonIndex); if (currentScore > lastScore) { GameMng.SetLessonBestScore(GameMng.selectedCategory, GameMng.selectedLessonIndex, currentScore); } } else { int lastScore = GameMng.GetExamBestScore(GameMng.selectedExam.examTitle); if (currentScore > lastScore) { GameMng.SetExamBestScore(GameMng.selectedExam.examTitle, currentScore); } } }
public void Show() { myPanel.Show(); int bestScore = GameMng.GetExamBestScore(GameMng.selectedExam.examTitle); int maxScore = GameMng.selectedExam.examQuestions * 3; bestScoreText.text = bestScore + "/" + maxScore; diamondRequestedText.text = GameMng.selectedExam.examDiamondPrice.ToString(); if (bestScore >= maxScore / 2f) { StartCoroutine(ShowStamp()); CertificateButton.gameObject.SetActive(true); } else { CertificateButton.gameObject.SetActive(true); stampAnimator.gameObject.SetActive(false); } }