Higher or Lower buttons not displaying the next guess after pressed

I’m sure I may have missed something very small, but I can’t figure out what!

When I click either Higher or Lower, the text changes to NumberWizard (NumberWizard) instead of the next guess.

I’ve checked my code to see if I have missed a character but I could still be missing it.
I’ve also looked through the inspector to see if I have missed linking something, but again I can’t seem to see anything wrong.

Before clicking anything in game

After clicking Higher/Lower

Code:

I’m going back to rewatch the lecture to see if I missed something simple. So I will update if I find my solution

Thanks All!

Don’t worry!!

I knew it must have been something small

When changing the text variable, I missed out the word ‘guess’ before .ToString();

PHEW… Fixed :slight_smile:

Privacy & Terms