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