public void Awake()
		{
			if (grid == null)
			{
				grid = GetComponent<Grid>();
			}
		}
示例#2
0
        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;
        }