Waypoint Path

Merlins Beard . Movement . Waypoint Path

Serialized Fields

Waypoint Color :: Color 32
Waypoint Gizmo Radius :: float
Path :: Transform


Get First Waypoint ( )

Returns the Waypoint component on the first child transform of the Path.

Get Next Waypoint ( Current Waypoint :: Transform )

Gets the index of the current waypoint and then retrieves and returns the next waypoint’s Waypoint component.

Unity Methods

On Draw Gizmos ( )

Guards against a null Path. For each Transform that is a child of the Path, draws a sphere at the position of each child and a line between those spheres.