find the index of a variable in an array unity code example
Example: unity c# find object position in array
//C# Unity finding an object in an array
int positionInArray = System.Array.IndexOf(arrayName, objectToFind);
//C# Unity finding an object in an array
int positionInArray = System.Array.IndexOf(arrayName, objectToFind);