AudioCategory._GetIndexOf C# (CSharp) Method

_GetIndexOf() private method

private _GetIndexOf ( AudioItem, audioItem ) : int
audioItem AudioItem,
return int
    internal int _GetIndexOf( AudioItem audioItem )
    {
        if ( AudioItems == null ) return -1;

        for ( int i = 0; i < AudioItems.Length; i++ )
        {
            if ( audioItem == AudioItems[ i ] ) return i;
        }
        return -1;
    }