Hello. So right now I’m working on creating items in my game, and everything was going really good until for some reason it said that my ItemDescription is inaccessible due to it’s protection level.
Here’ the line where it tells me that:
newEquipment.itemDescription = itemDes[Random.Range(0,itemDes.Length)];
(The description is taken from a string which is here)
private string[ ] itemDes = new string[2] {“A cool item”, “A great item”};
I’m really not sure if this information is enough, but I’ve no idea why it causes it to say such an error, cause it’s public in every other script, so it’s not protected.
EDIT: I fixed the error, nevermind.