Inaccessible due to its protection level.

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.

switch the order. it looks like you’re trying to access an array that has not been created yet.
and test with changing it to public

private string[] itemDes = new string[2] {"A cool item", "A great item"};
newEquipment.itemDescription = itemDes[Random.Range(0,itemDes.Length)];
(The description is taken from a string which is here)