Пример #1
0
 public void EndGameWordsGame()
 {
     instructionSoundManager.PlayEnd("GameWords");
     ShowEndGameMessage();
     if (PlayerPrefs.GetInt("CompletedTasks", 0) != null)
     {
         int completedTasks = PlayerPrefs.GetInt("CompletedTasks", 0);
         PlayerPrefs.SetInt("CompletedTasks", completedTasks + 1);
     }
 }
Пример #2
0
        public void EndQuizGame()
        {
            instructionSoundManager.PlayEnd("QuizGame");
            ShowEndGameMessage();

            if (PlayerPrefs.GetInt("CompletedTasks", 0) != null)
            {
                int completedTasks = PlayerPrefs.GetInt("CompletedTasks", 0);
                PlayerPrefs.SetInt("CompletedTasks", completedTasks + 1);
            }
            //StartCoroutine (waitForSomeTime,3);
        }