private void OnDrawGizmosSelected()
{
Gizmos.color = Color.blue;
for (int i = 0; i < waypoints.Length; i++)
{
Gizmos.DrawLine(transform.position, target.position);
}
}
Before that i'm not sure how to draw at all between all the waypoints.
Instead line maybe to draw spheres or something else and scale it to dots/points ? And i also want to be able to set and change the number of dots/points between each two waypoints.
For example from waypoints[0] to waypoint[1] to draw 30 dots and from waypoints[1] to waypoints[2] 10 dots or just the same maount of dots between all waypoints.
For not not curves lines only straight lines like showing the path between the waypoints in game view.
waypoint[0]
every time, notwaypoint[i]
? \$\endgroup\$