private void OnDrawGizmos()
{
for(int i = 0; i < waypoints.Count; i++)
{
Gizmos.color = Color.green;
Gizmos.DrawSphere(waypoints[i].position, 0.1f);
}
if (nextWayPoint != null)
{
Gizmos.color = Color.red;
Gizmos.DrawLine(transform.position, nextWayPoint.position);
}
}
It's drawing in color the first two spheres already in the editor but I want it to start drawing the spheres only when running the game not in the editor.