예제 #1
0
 private void CheckIfTheGameIsFinished()
 {
     ++numOfCorrectGuesses;
     if (numOfCorrectGuesses == NUM_OF_CORRECT_GUESSES)
     {
         isGameFinished = true;
         // The order matters! E.g. TimerText must be active at this point.
         uiHandler.DisplayFinishedPanel();
         panelImage.SetActive(false);
         panelPuzzleField.SetActive(false);
     }
 }