Exemple #1
0
 /// <summary>
 /// 根据真实世界坐标取得格子坐标
 /// </summary>
 /// <param name="realPos"></param>
 /// <param name="nRow"></param>
 /// <param name="nCol"></param>
 /// <returns></returns>
 public static bool GetHexIndexByPos(Vector3 realPos, out int nRow, out int nCol)
 {
     return(HexagonImplement.GetHexIndexByPos(realPos, out nRow, out nCol));
 }
Exemple #2
0
 public static Vector3 GetHex3DPos(CVector3 hexPos, Space space)
 {
     return(HexagonImplement.GetHex3DPos(hexPos, space));
 }
Exemple #3
0
 public static Vector2 GetHexPosByIndex(int nRow, int nCol, Space space)
 {
     return(HexagonImplement.GetHexPosByIndex(nRow, nCol, space));
 }
Exemple #4
0
 public static bool FillHexagon(int nRow, int nCol, float fY, ref List <Vector3> listVertex, ref List <int> listVertexIndex, ref List <Vector2> listUV)
 {
     return(HexagonImplement.FillHexagon(nRow, nCol, fY, ref listVertex, ref listVertexIndex, ref listUV));
 }