Little more refactoring

Instead of basically writing out the functionality of NextGuess in StartGame, why not just call NextGuess in StartGame?

 void StartGame()
    {
        NextGuess();
        max = max + 1;
    }

void NextGuess()
    {
        guess = (max + min) / 2;
        guessText.text = guess.ToString();
    }

Nevermind, this is done in the next lecture.

Privacy & Terms