I have multiple arrays in a script and I have to find the arrays among them with the string of the name of that array.
For example:
int[] no1, no2, no3, no4, etc..;
void Something(string str) {
int[] array = int array with name str;
}
So, when I call this function like this:
Something("no1");
it will take the value of array "no1".
Thank you guys in advance.
Dictionary<string, int[]>