Problem: after the very first click on either “it’s higher” or “it’s lower”, the script will pick a random number between 1 and 1000. Second, third click etc. it will behave normally.
Example:
Run game (scene 1). The script randomizes a number, 730. User clicks “it’s higher”, script guesses next number 321.
Once again, guesses 2, 3, 4 etc. work fine, the problem is specifically with just the first guess.
This seems to happen, because the min and max are defined as 1 and 1000 before the user clicks “it’s lower” or “it’s higher” for the first time.
If you look at the video 5:28 (when Rick clicks play) and he gets the number 535, if you look at the “Number Wizard (Script)” components min and max values in the inspector, they are 1 and 1001 before Rick clicks anything.
Does this not mean Rick has the exact same bug? (not reproduced in video by pure chance).
I skimmed over the code in git.hub and compared to my code, looks 1:1.
So did I mess up somewhere or is this in fact a bug?