I was wondering if it was possible to reference a specific part of an array in a jagged array, sorry if that sounds confusing, let me explain.
I have a jagged array string variable here:
public string[][] allConvos;
Which is later assigned 10 string arrays as shown here:
allConvos [0] = convo1;
allConvos [1] = convo2;
allConvos [2] = convo3;
allConvos [3] = convo4;
allConvos [4] = convo5;
allConvos [5] = convo6;
allConvos [6] = convo7;
allConvos [7] = convo8;
allConvos [8] = convo9;
allConvos [9] = convo10;
And then it's supposed to be referenced by another script here:
convoText = script.allConvos[0][0];
But no matter what I've done, I get an error and convotext doesn't have anything assign to it. Could anyone tell me if it's possible to reference an array like this and if so what I'm doing wrong? Sorry if this has bee answered already, I couldn't find anything on stackoverflow and decided to see if I'd have better luck asking it myself.