LazyBot/Assets/Scripts/Navigation/NavigationContainer.cs
/// <summary>
/// Calculates target's speed on path, based on its position.
/// </summary>
/// <param name="speed">Target's absolute speed.</param>
Calculates target's speed on path, based on its position.
Calculates target ' s speed on path based on its position .
public void CalculateSpeedOnPath(ref float speed)
        {
            for (int i = 0; i < Points.Count; i++)
            {
                CalculateSpeedOnPoint(ref speed, _ownerTransform.position, i);
            }
        }
public void CalculateSpeedOnPath ( ref float speed ) { for ( int i = 0 ; i < Points . Count ; i ++ ) { CalculateSpeedOnPoint ( ref speed , _ownerTransform . position , i ) ; } }
Calculates target's speed on path, based on its position.
Calculates target ' s speed on path based on its position .
float
ref
speed
Target's absolute speed.
Target ' s absolute speed .