Can't seem to Get this error to go away or get what it meens

In a few Scripts i made i got and Error CS0122

here is what it says complete

Assets/Scripts/Character Classes/ModifiedStat.cs(7,16): error CS0122: `basestat.basestat()’ is inaccessible due to its protection level

Assets/Scripts/Character Classes/Attribute.cs(3,16): error CS0122: `basestat.basestat()’ is inaccessible due to its protection level

3 Answers

3

I’m going to go out on a limb and guess that for one, these are NOT scripts that you made, because if you new how to deal with class inheritance, the error would make sense to you.

I’m also going to assume that you didn’t want to post code because well, this is probably BurgZerg Arcade authored because I’ve played around with some of his tutorials, and that’s pretty much an exact hierarchy and file name structure that he uses.

I of course could be wrong, and I apologize if I am, but plagiarism in especially in the coding community is considered to be a cardinal no-no. So I’ll go with my gut and leave it at that.

I have the same problem, but with code I wrote... well I wrote JS version and someone helped me to translate it. Wish I could find an answer instead of having to ask :(

That is probably an inheritance issue or you want to reach a private field

Hey dannyskim, are you kidding… plagiarism
When playing around with TUTORIAL code…
Take a pill, dude