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); } }