unity c# find object position in array 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);