Example #1
0
        void CreateCell(int x, int z, int i)
        {
            HexCell cell = cells[i] = new HexCell();

            cell.Data        = new HexCellData();
            cell.coordinates = HexCoordinates.FromOffsetCoordinates(x, z);

            UpdateNeighbors(x, z, i);

            AddCellToChunk(x, z, cell);
        }
Example #2
0
 public HexCell GetCell(int x, int z)
 {
     return(GetCell(HexCoordinates.FromOffsetCoordinates(x, z)));
 }