private void DrawSceneLine()
    {
        Handles.color = Color.white;
        Vector3 last = GetWorldPosition(path.GetPointDetail(0.0f));

        for (int i = 0; i < 100; i++)
        {
            Vector3 cur = GetWorldPosition(path.GetPointDetail(i));
            Handles.DrawLine(last, cur);
            last = cur;
        }
    }
Exemplo n.º 2
0
 public Vector3 GetPointDetail(float t, float allsteps = 100)
 {
     return(Path ? Path.GetPointDetail(t, allsteps):Vector3.zero);
 }