[Help] The Return Key doesn't display anything on the console

After guessing the number in NumberWizard in the console twice, I would like the Return Key to print “I won” and call the StartGame Function.

Observed

By pressing Return key after playing the game twice it does not print “I won” and call the StartGame Function.

Desired

By pressing Return key after playing the game twice it should print “I won” and call the StartGame Function.

Relevant Information

Unity 4.7.2f1

Code for Number Wizard : https://gist.github.com/anonymous/ec958c4e9d8a5db25937ff543ec03270

Your class name and your file name must match for Unity.

Currently, you have a capital “U” in the class name, change it to match the file name then try running again.

I’ve changed the Class name and File name to be the same “NumberWizards” it’s still not working

Could you post your code please @Venkat_Balaji.


See also;

Privacy & Terms