My number wizard worked until he started creating functions. I followed it through from start to finish twice, and started the whole project from scratch but it still wont respond at all please help.
Hi,
Is your script attached to a game object in the hierarchy?
It can do.
So, on the left you have the hierarchy, there is a game object there called NumberWizard.
At the bottom you have select a script NumberWizard.cs which is residing in the Assets folder, which you can see from the Project view on the left at the bottom.
Then on the right hand side you have the Inspector which provides you with details of the item you have selected, in this case the script.
Your screen shot doesn’t quite show the top of the window so I couldn’t see the name of your Scene or whether you had saved it or not, actually as there isn’t a scene in the Assets folder I’m guessing not.
You may find the reason your script isn’t running is because it has been renamed. If you look at the name of the script file and the class name in the code, they are different. Unity reauires these to be the same. At least in the first screenshot as the class is called NumberWizards but the file name is NumberWizard.cs - e.g. no S on the end of wizard.
This looks different in the second screenshot but is worth checking.
