Beispiel #1
0
 public override void DrawRay()
 {
     if (rays != null)
     {
         foreach (Ray ray in rays)
         {
             for (int i = 0; i < ray.collisionPoints.Count - 1; i++)
             {
                 Renderer2D.DrawLine(ray.collisionPoints[i + 1], ray.collisionPoints[i], ray.color, 2.5f);
             }
         }
     }
 }