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); }
public HexCell GetCell(int x, int z) { return(GetCell(HexCoordinates.FromOffsetCoordinates(x, z))); }