LazyBot/Assets/Scripts/Navigation/NavigationContainer.cs
/// <summary>
/// Returns position of navigation point.
/// </summary>
/// <param name="index">Positional index.</param>
/// <returns>Position in scene.</returns>
Returns position of navigation point.
Returns position of navigation point .
public Vector3 GetPathPosition(int index)
        {
            if ((index < 0) ||
                (Points.Count == 0) ||
                (index >= Points.Count))
                throw new System.Exception(string.Format("Can't get {0} navigation position, no such navigation point.", index));
            return Points[index].Transform.position;
        }
public Vector3 GetPathPosition ( int index ) { if ( ( index < 0 ) || ( Points . Count == 0 ) || ( index >= Points . Count ) ) throw new System . Exception ( string . Format ( " " , index ) ) ; return Points [ index ] . Transform . position ; }
Returns position of navigation point.
Returns position of navigation point .
Position in scene.
Position in scene .
index
int
None