SharpNav.NodePool.GetNodeAtIdx C# (CSharp) Метод

GetNodeAtIdx() публичный Метод

Return a node at a certain index. If index is out-of-bounds, return null.
public GetNodeAtIdx ( int idx ) : NavNode
idx int Node index
Результат NavNode
        public NavNode GetNodeAtIdx(int idx)
        {
            if (idx <= 0 || idx > nodes.Count)
                return null;

            return nodes[idx - 1];
        }