Newbie- Bunch of errors dont know how to fix
Im watching a tutorial so I can get the basics of unity and im getting so many errors he isnt getting :((
Im looking at both of them and they seem the exact same
7 Replies
Note that your file hasn't been saved, so the code we're looking at might not corresponding to the errors we're looking at
Please save that file and try again
hmmm it seems to have fixed most of them but these two left I dont really understand
probably links with this
I would think since they are public and protected they would be able to be used elsewhere?
Those are fields. They're specific to the class they're defined in. A field definted on
padding
is not the same as a field defined in NewBehaviourScript
how would I get them to be used on the other script? they seem to work for the guy im watching
you would need to get an instance of a
paddle
in the other script
any member of a class that isn't marked static
has values specific to a particular instance of that class, so they can't be used without an instance of the class