public void Awake() { if (grid == null) { grid = GetComponent<Grid>(); } }
static PointLatLng findClosestPoint(PointLatLng start, Grid.linelatlng line) { List<PointLatLng> list = new List<PointLatLng>(); list.Add(line.p1); list.Add(line.p2); PointLatLng closest = findClosestPoint(start, list); return closest; }