LazyBot/Assets/Scripts/Navigation/SimpleNavigation.cs
/// <summary>
/// Returns next or random (based on container settings) navigation point.
/// </summary>
/// <param name="destinationIndex">Relative index of navigation point, updates after choosing new point.</param>
/// <returns>Position of target navigation  point.</returns>
Returns next or random (based on container settings) navigation point.
Returns next or random ( based on container settings ) navigation point .
public override Vector3 GetDestination(ref int destinationIndex)
        {
            if (Points.Count == 0)
                throw new System.Exception("Can't get destination, navigation is empty.");
            if (_isRandom)
                return GetRandomPoint(ref destinationIndex);
            return GetNextPoint(ref destinationIndex);
        }
public override Vector3 GetDestination ( ref int destinationIndex ) { if ( Points . Count == 0 ) throw new System . Exception ( " " ) ; if ( _isRandom ) return GetRandomPoint ( ref destinationIndex ) ; return GetNextPoint ( ref destinationIndex ) ; }
Returns next or random (based on container settings) navigation point.
Returns next or random ( based on container settings ) navigation point .
Position of target navigation  point.
Position of target navigation point .
int
ref
destinationIndex
Relative index of navigation point, updates after choosing new point.
Relative index of navigation point updates after choosing new point .