Number Wizard UI bug

I was playing the standalone build of the game, upon finishing the section, when I noticed a bug. Once you pin-point the desired number you can spam click the Higher button and it will add 1-3 to the number.
This course is my first time coding but perhaps its within method “NextGuess” (max + 1) that is allowing it to bug.

piblic void NextGuess()
{
guess = Random.Range(min, max +1);
guessText.text = guess.ToString();
}

Hi Brent,

We don’t prevent the player from cheating. If you want to do that, wrap your code in an if-block.


See also:

This topic was automatically closed after 14 days. New replies are no longer allowed.

Privacy & Terms