C
C#10mo ago
breadman

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
No description
7 Replies
canton7
canton710mo ago
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
breadman
breadmanOP10mo ago
hmmm it seems to have fixed most of them but these two left I dont really understand
No description
breadman
breadmanOP10mo ago
probably links with this
No description
breadman
breadmanOP10mo ago
I would think since they are public and protected they would be able to be used elsewhere?
canton7
canton710mo ago
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
breadman
breadmanOP10mo ago
how would I get them to be used on the other script? they seem to work for the guy im watching
Jimmacle
Jimmacle10mo ago
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
Want results from more Discord servers?
Add your server