Skip to content

Commit

Permalink
Update QuizManager.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
swapnilrane24 committed Sep 9, 2020
1 parent 01f0ae0 commit 1900b8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Quiz/Scripts/QuizManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ private void GameEnd()
quizGameUI.GameOverPanel.SetActive(true);

//fi you want to save only the highest score then compare the current score with saved score and if more save the new score
//eg:- correctAnswerCount > PlayerPrefs.GetInt(currentCategory) then call below line
//eg:- if correctAnswerCount > PlayerPrefs.GetInt(currentCategory) then call below line

//Save the score
PlayerPrefs.SetInt(currentCategory, correctAnswerCount); //save the score for this category
Expand Down

0 comments on commit 1900b8e

Please sign in to comment.