Пример #1
0
 private void OnDrawGizmosSelected()
 {
     Gizmos.color = FromColor;
     From.DrawGizmos();
     Gizmos.color = ToColor;
     To.DrawGizmos();
     if (LastPath != null)
     {
         Gizmos.color = PathColor;
         for (var i = 1; i < LastPath.Count; i++)
         {
             var point    = LastPath[i];
             var previous = LastPath[i - 1];
             previous.DrawGizmos();
         }
     }
 }