guessText is not updating when I run my game

Hey guys,
Really need some help here, please.
I could not get the guessText to show any numbers though Tostring(). Here is the screenshot in unity and visual studio.
There is no bug/error in unity console. Also in the screenshot below.

image
image.png2560x1422 327 KB

image
image.png2360x1376 306 KB

image
image.png2560x1422 323 KB

Not sure where did I go wrong. Please help.

Hi Albert,

Your problem is the case you have used for your methods.

The Unity API provides a Start method, but you have named yours start, these are not considered to be the same, as Such, Unity doesn’t have a Start method to call and your code isn’t executing.

Update your code so that your methods names use PascalCase, use camelCase for variables.

Hope this helps :slight_smile:

Thank you so much! Big help and good suggestion, will notice in the future.

1 Like

You’re very welcome :slight_smile:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms