Пример #1
0
 /// <summary>
 /// 将地形块坐标转换成地形块中心点像素坐标;
 /// </summary>
 public static Vector3 ToLandformChunkPixel(this RectCoord chunkPos)
 {
     return(Grid.GetCenter(chunkPos));
 }
Пример #2
0
 /// <summary>
 /// 将地图节点坐标转换为地图节点中心像素坐标;
 /// </summary>
 public static Vector3 ToLandformPixel(this RectCoord pos)
 {
     return(Grid.GetCenter(pos));
 }
Пример #3
0
 /// <summary>
 /// 将地图节点坐标转换为地图节点中心像素坐标;
 /// </summary>
 public static Vector3 ToRectTerrainPixel(this RectCoord pos)
 {
     return(Grid.GetCenter(pos));
 }