Hello, I can’t get my game’s “maxGuessesAllowed” working. I’m convinced there is something wrong in my game, not something wrong with the code. I even copied and pasted the code from a the available project files to make sure it wasn’t my code that was failing.
No matter what I do, I can’t get my game to load “WinScene” after however many specified guesses. Please help.
Unity build: 4.6.9
NumberWizardScript.zip (518 Bytes)
NumberWizardUI-FullProject.zip (153.0 KB)
SOLUTION BELOW
The problem, as @Rob pointed out, was the conflict of “maxGuessesAllowed” set to 5 in my code, and “maxGuessesAllowed” set to 25 in the NumberWizard’s object’s inspector.