Check out example codes for "unity c# find object position in array". It will help you in understanding the concepts better.

Code Example 1

//C# Unity finding an object in an array
int positionInArray = System.Array.IndexOf(arrayName, objectToFind);

Learn ReactJs, React Native from akashmittal.com